This commit is contained in:
speed 2020-07-21 23:54:56 -04:00 committed by GitHub
parent e4ee3066bc
commit a1f64ef912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }
} }