diff --git a/TheButtonAutoFlair.jar b/TheButtonAutoFlair.jar index da82965..48df193 100644 Binary files a/TheButtonAutoFlair.jar and b/TheButtonAutoFlair.jar differ diff --git a/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java b/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java index 2ac1f4e..5abc196 100644 --- a/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java +++ b/TheButtonAutoFlair/src/tk/sznp/thebuttonautoflair/PlayerListener.java @@ -257,12 +257,13 @@ public class PlayerListener implements Listener { // 2015.07.16. else rpc = 0; } - /*System.out.println("item: " + item); // TO!DO: TMP - System.out.println("currentindex: " + currentindex); - System.out.println("format: " - + String.format("§%s%s", RainbowPresserColors[rpc], - item)); - System.out.println("formattedmessage: " + formattedmessage);*/ + /* + * System.out.println("item: " + item); // TO!DO: TMP + * System.out.println("currentindex: " + currentindex); + * System.out.println("format: " + String.format("§%s%s", + * RainbowPresserColors[rpc], item)); + * System.out.println("formattedmessage: " + formattedmessage); + */ StringBuffer buf = new StringBuffer(formattedmessage); buf.replace(currentindex, currentindex + item.length(), String.format("§%s%s", RainbowPresserColors[rpc], item)); @@ -1083,7 +1084,9 @@ public class PlayerListener implements Listener { // 2015.07.16. .getPlayer()); if (mp == null) return; - if (mp.getMinigame().getName(false).equalsIgnoreCase("twohundred")) { + if (mp.isInMinigame() + && mp.getMinigame().getName(false) + .equalsIgnoreCase("twohundred")) { if (e.getClickedBlock().getType() == Material.ENDER_CHEST) { e.setCancelled(true); e.getPlayer().sendMessage( diff --git a/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener$3.class b/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener$3.class index b41dcdc..1a3f05f 100644 Binary files a/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener$3.class and b/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener$3.class differ diff --git a/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener$4.class b/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener$4.class index 4370f02..186ec92 100644 Binary files a/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener$4.class and b/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener$4.class differ diff --git a/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener.class b/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener.class index 7ba8677..f1ce7b9 100644 Binary files a/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener.class and b/TheButtonAutoFlair/target/classes/tk/sznp/thebuttonautoflair/PlayerListener.class differ