mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-22 18:09:06 +00:00
Check permission itself not whether it's set to something.
This commit is contained in:
parent
ba668c3a22
commit
30531eb752
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user