mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-02 04:56:40 +00:00
weSmart
sourcetype fixes; making sure in game commands work only in game
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user