mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Merge branch 'development' into 2021.02-release
This commit is contained in:
commit
881dead392
@ -40,6 +40,7 @@ public class Command_deop extends FreedomCommand
|
|||||||
matchedPlayerNames.add(player.getName());
|
matchedPlayerNames.add(player.getName());
|
||||||
player.setOp(false);
|
player.setOp(false);
|
||||||
player.sendMessage(FreedomCommand.YOU_ARE_NOT_OP);
|
player.sendMessage(FreedomCommand.YOU_ARE_NOT_OP);
|
||||||
|
plugin.rm.updateDisplay(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@ public class Command_deopall extends FreedomCommand
|
|||||||
{
|
{
|
||||||
player.setOp(false);
|
player.setOp(false);
|
||||||
player.sendMessage(FreedomCommand.YOU_ARE_NOT_OP);
|
player.sendMessage(FreedomCommand.YOU_ARE_NOT_OP);
|
||||||
|
plugin.rm.updateDisplay(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -41,6 +41,7 @@ public class Command_op extends FreedomCommand
|
|||||||
matchedPlayerNames.add(player.getName());
|
matchedPlayerNames.add(player.getName());
|
||||||
player.setOp(true);
|
player.setOp(true);
|
||||||
player.sendMessage(FreedomCommand.YOU_ARE_OP);
|
player.sendMessage(FreedomCommand.YOU_ARE_OP);
|
||||||
|
plugin.rm.updateDisplay(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ public class Command_opall extends FreedomCommand
|
|||||||
{
|
{
|
||||||
player.setOp(true);
|
player.setOp(true);
|
||||||
player.sendMessage(FreedomCommand.YOU_ARE_OP);
|
player.sendMessage(FreedomCommand.YOU_ARE_OP);
|
||||||
|
plugin.rm.updateDisplay(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ public class Command_opme extends FreedomCommand
|
|||||||
FUtil.adminAction(sender.getName(), "Opping " + sender.getName(), false);
|
FUtil.adminAction(sender.getName(), "Opping " + sender.getName(), false);
|
||||||
sender.setOp(true);
|
sender.setOp(true);
|
||||||
sender.sendMessage(FreedomCommand.YOU_ARE_OP);
|
sender.sendMessage(FreedomCommand.YOU_ARE_OP);
|
||||||
|
plugin.rm.updateDisplay(playerSender);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -117,10 +117,4 @@ public class PermissionManager extends FreedomService
|
|||||||
setPermissions(player);
|
setPermissions(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.NORMAL)
|
|
||||||
public void onPlayerJoin(PlayerJoinEvent event)
|
|
||||||
{
|
|
||||||
setPermissions(event.getPlayer());
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user