sourcetype fixes; making sure in game commands work only in game
This commit is contained in:
speedxx
2020-07-28 23:14:58 -04:00
parent 05abebea65
commit 0ae835aa04
11 changed files with 49 additions and 39 deletions

View File

@ -15,7 +15,7 @@ public class Command_rank extends FreedomCommand
@Override
public boolean run(CommandSender sender, Player playerSender, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{
if (isConsole() && args.length == 0)
if (senderIsConsole && args.length == 0)
{
for (Player player : server.getOnlinePlayers())
{
@ -72,4 +72,4 @@ public class Command_rank extends FreedomCommand
return sb.toString();
}
}
}