Check permission itself not whether it's set to something.

This commit is contained in:
Aust1n46 2021-10-15 18:16:50 -05:00
parent ba668c3a22
commit 30531eb752
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>mineverse.Aust1n46.chat</groupId>
<artifactId>VentureChat</artifactId>
<version>3.2.1</version>
<version>3.2.2</version>
<url>https://bitbucket.org/Aust1n46/venturechat/src/master</url>
<scm>
<url>https://bitbucket.org/Aust1n46/venturechat/src/master</url>

View File

@ -538,7 +538,7 @@ public class MineverseChatPlayer {
public void setJsonFormat() {
this.jsonFormat = "Default";
for(JsonFormat j : JsonFormat.getJsonFormats()) {
if(this.getPlayer().isPermissionSet("venturechat.json." + j.getName())) {
if(this.getPlayer().hasPermission("venturechat.json." + j.getName())) {
if(JsonFormat.getJsonFormat(this.getJsonFormat()).getPriority() > j.getPriority()) {
this.jsonFormat = j.getName();
}