From ca93dc02df5340e045b4b3d9c0de205ef0e8231a Mon Sep 17 00:00:00 2001 From: nossr50 Date: Wed, 28 Oct 2020 10:53:47 -0700 Subject: [PATCH] Fix missing party chat permission node check --- Changelog.txt | 3 +++ pom.xml | 2 +- src/main/java/com/gmail/nossr50/chat/ChatManager.java | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Changelog.txt b/Changelog.txt index 8b96da7b8..abc246fbb 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,3 +1,6 @@ +Version 2.1.151 + Fixed a bug where players could chat to party chat without the party chat permission + Version 2.1.150 Fixed an ArrayIndexOutOfBounds exception when using /skillreset You can now add "-s" at the end of mmoedit, addlevels, or addxp to silence the command. Which will prevent the target of the command from being informed that the command was executed. diff --git a/pom.xml b/pom.xml index 48719cb44..fc6fc4248 100755 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.gmail.nossr50.mcMMO mcMMO - 2.1.150 + 2.1.151-SNAPSHOT mcMMO https://github.com/mcMMO-Dev/mcMMO diff --git a/src/main/java/com/gmail/nossr50/chat/ChatManager.java b/src/main/java/com/gmail/nossr50/chat/ChatManager.java index e162cb6c8..f993d8da0 100644 --- a/src/main/java/com/gmail/nossr50/chat/ChatManager.java +++ b/src/main/java/com/gmail/nossr50/chat/ChatManager.java @@ -159,7 +159,7 @@ public class ChatManager { } break; case PARTY: - if(mmoPlayer.getParty() != null) { + if(mmoPlayer.getParty() != null && Permissions.partyChat(mmoPlayer.getPlayer())) { return true; } break;