mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
commit
fc05003354
@ -47,6 +47,11 @@ public class Command_cage extends FreedomCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
final FPlayer fPlayer = plugin.pl.getPlayer(player);
|
final FPlayer fPlayer = plugin.pl.getPlayer(player);
|
||||||
|
if (fPlayer.getCageData().isCaged())
|
||||||
|
{
|
||||||
|
sender.sendMessage(ChatColor.RED + "That player is already caged.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
Material outerMaterial = Material.GLASS;
|
Material outerMaterial = Material.GLASS;
|
||||||
Material innerMaterial = Material.AIR;
|
Material innerMaterial = Material.AIR;
|
||||||
|
@ -30,18 +30,15 @@ public class Command_uncage extends FreedomCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
final FPlayer fPlayer = plugin.pl.getPlayer(player);
|
final FPlayer fPlayer = plugin.pl.getPlayer(player);
|
||||||
|
|
||||||
if (fPlayer.getCageData().isCaged())
|
if (fPlayer.getCageData().isCaged())
|
||||||
{
|
{
|
||||||
FUtil.adminAction(sender.getName(), "Uncaging " + sender.getName(), true);
|
FUtil.adminAction(sender.getName(), "Uncaging " + player.getName(), true);
|
||||||
final FPlayer playerdata = plugin.pl.getPlayer(playerSender);
|
fPlayer.getCageData().setCaged(false);
|
||||||
playerdata.getCageData().setCaged(false);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg("That player is not caged!", ChatColor.RED);
|
msg("That player is not caged!", ChatColor.RED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user