Fix missing party chat permission node check

This commit is contained in:
nossr50 2020-10-28 10:53:47 -07:00
parent 8aff138954
commit ca93dc02df
3 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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>

View File

@ -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;