mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2025-02-12 03:35:49 +00:00
Now made qdeop require you to be op else it wont try to deop the player.
This commit is contained in:
parent
9a2dc52e87
commit
c490a3d62e
1 changed files with 6 additions and 3 deletions
|
@ -34,9 +34,12 @@ public class Command_qdeop extends TFM_Command
|
||||||
{
|
{
|
||||||
if (player.getName().toLowerCase().contains(targetName) || player.getDisplayName().toLowerCase().contains(targetName))
|
if (player.getName().toLowerCase().contains(targetName) || player.getDisplayName().toLowerCase().contains(targetName))
|
||||||
{
|
{
|
||||||
matchedPlayerNames.add(player.getName());
|
if (player.isOp())
|
||||||
player.setOp(false);
|
{
|
||||||
player.sendMessage(TotalFreedomMod.YOU_ARE_NOT_OP);
|
matchedPlayerNames.add(player.getName());
|
||||||
|
player.setOp(false);
|
||||||
|
player.sendMessage(TotalFreedomMod.YOU_ARE_NOT_OP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue