mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Merge pull request #3 from AtlasMediaGroup/Elmon11-patch-2
checks if a player is OP before opping them
This commit is contained in:
commit
495c91f5bb
@ -18,8 +18,11 @@ public class Command_opall extends FreedomCommand
|
|||||||
|
|
||||||
for (Player player : server.getOnlinePlayers())
|
for (Player player : server.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
player.setOp(true);
|
if (!player.isOp())
|
||||||
player.sendMessage(FreedomCommand.YOU_ARE_OP);
|
{
|
||||||
|
player.setOp(true);
|
||||||
|
player.sendMessage(FreedomCommand.YOU_ARE_OP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user