mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Merge branch 'patch-2'
This commit is contained in:
commit
6ad1187eef
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,9 +34,12 @@ public class Command_qop 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(true);
|
{
|
||||||
player.sendMessage(TotalFreedomMod.YOU_ARE_OP);
|
matchedPlayerNames.add(player.getName());
|
||||||
|
player.setOp(true);
|
||||||
|
player.sendMessage(TotalFreedomMod.YOU_ARE_OP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user