Browse Source

Fix missing party chat permission node check

nossr50 4 years ago
parent
commit
ca93dc02df
3 changed files with 5 additions and 2 deletions
  1. 3 0
      Changelog.txt
  2. 1 1
      pom.xml
  3. 1 1
      src/main/java/com/gmail/nossr50/chat/ChatManager.java

+ 3 - 0
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.

+ 1 - 1
pom.xml

@@ -2,7 +2,7 @@
     <modelVersion>4.0.0</modelVersion>
     <groupId>com.gmail.nossr50.mcMMO</groupId>
     <artifactId>mcMMO</artifactId>
-    <version>2.1.150</version>
+    <version>2.1.151-SNAPSHOT</version>
     <name>mcMMO</name>
     <url>https://github.com/mcMMO-Dev/mcMMO</url>
     <scm>

+ 1 - 1
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;