From cb58130a105f43721e5c3091528ca43c54154b3c Mon Sep 17 00:00:00 2001 From: charburgx Date: Fri, 23 Jun 2017 23:01:03 -0400 Subject: [PATCH 1/2] For ARHUDClient Not the best way to deal with the issue but it works When Bukkit receives the packet it has extra bytes, so i must used ".contains("panic")" instead of ""panic".equalsIgnoreCase(parts[0])" --- .../mctourney/autoreferee/listeners/SpectatorListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/mctourney/autoreferee/listeners/SpectatorListener.java b/src/main/java/org/mctourney/autoreferee/listeners/SpectatorListener.java index 5ec4df0b..9d0f14b6 100644 --- a/src/main/java/org/mctourney/autoreferee/listeners/SpectatorListener.java +++ b/src/main/java/org/mctourney/autoreferee/listeners/SpectatorListener.java @@ -149,6 +149,10 @@ else if ("inventory".equalsIgnoreCase(parts[0])) player.sendMessage(ChatColor.DARK_GRAY + "Cannot show inventory for " + parts[2]); } } + else if (message.contains("panic")){ + match.updateReferee(player); + player.sendMessage(ChatColor.DARK_RED + "Panic button successful."); + } } catch (UnsupportedEncodingException e) { AutoReferee.log("Unsupported encoding: " + AutoReferee.PLUGIN_CHANNEL_ENC); } From 7e183f0803baaa33617a914b45af2fc9b702b3e0 Mon Sep 17 00:00:00 2001 From: Net Date: Sat, 24 Jun 2017 04:01:04 -0400 Subject: [PATCH 2/2] Bump version to 2.8.4 --- pom.xml | 2 +- src/main/resources/plugin.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index beed13db..2ab7333d 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ org.mctourney.autoreferee AutoReferee - 2.8.3 + 2.8.4 AutoReferee Core Plugin https://www.reddit.com/r/mctourney Bukkit plugin for automatically refereeing competitive Minecraft matches. diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index da4cd392..1910e541 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: AutoReferee main: org.mctourney.autoreferee.AutoReferee -version: 2.8.3 +version: 2.8.4 author: "authorblues, net" load: startup