mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 02:19:05 +00:00
Fixed bug with JSON formating when removing permissions
This commit is contained in:
parent
c89cba2474
commit
eae77c8c00
@ -477,8 +477,9 @@ public class MineverseChatPlayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setJsonFormat() {
|
public void setJsonFormat() {
|
||||||
|
this.jsonFormat = "Default";
|
||||||
for(JsonFormat j : MineverseChat.jfInfo.getJsonFormats()) {
|
for(JsonFormat j : MineverseChat.jfInfo.getJsonFormats()) {
|
||||||
if(this.getPlayer().hasPermission("venturechat.json." + j.getName())) {
|
if(this.getPlayer().isPermissionSet("venturechat.json." + j.getName())) {
|
||||||
if(MineverseChat.jfInfo.getJsonFormat(this.getJsonFormat()).getPriority() > j.getPriority()) {
|
if(MineverseChat.jfInfo.getJsonFormat(this.getJsonFormat()).getPriority() > j.getPriority()) {
|
||||||
this.jsonFormat = j.getName();
|
this.jsonFormat = j.getName();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user