From 113350b2286173de7294d415cc17bd8ae7884437 Mon Sep 17 00:00:00 2001 From: speed <43330808+speedxx@users.noreply.github.com> Date: Tue, 21 Jul 2020 23:56:18 -0400 Subject: [PATCH] fix this too --- .../totalfreedom/totalfreedommod/command/Command_cage.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_cage.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_cage.java index 2eda0ebc..df4f1eba 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_cage.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_cage.java @@ -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;