fix this too

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

View File

@ -47,6 +47,11 @@ public class Command_cage extends FreedomCommand
}
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 innerMaterial = Material.AIR;