forked from Upstream/CommandPanels
Fix failing checks
Use opposite operator instead of negating the whole expression with a logic complement operator.
This commit is contained in:
parent
d5149ad961
commit
10c9825776
@ -36,7 +36,7 @@ public class ExecuteOpenVoids {
|
|||||||
panel.setConfig(YamlConfiguration.loadConfiguration(panel.getFile()));
|
panel.setConfig(YamlConfiguration.loadConfiguration(panel.getFile()));
|
||||||
}
|
}
|
||||||
if (!sender.hasPermission("commandpanel.panel." + panel.getConfig().getString("perm"))) {
|
if (!sender.hasPermission("commandpanel.panel." + panel.getConfig().getString("perm"))) {
|
||||||
if(!(panel.getConfig().getString("custom-messages.perms") == null)) {
|
if(panel.getConfig().getString("custom-messages.perms") != null) {
|
||||||
sender.sendMessage(plugin.tex.colour(plugin.tag + panel.getConfig().getString("custom-messages.perms")));
|
sender.sendMessage(plugin.tex.colour(plugin.tag + panel.getConfig().getString("custom-messages.perms")));
|
||||||
return;
|
return;
|
||||||
}else {
|
}else {
|
||||||
@ -48,7 +48,7 @@ public class ExecuteOpenVoids {
|
|||||||
if(sender.hasPermission("commandpanel.other") || !openForOtherUser) {
|
if(sender.hasPermission("commandpanel.other") || !openForOtherUser) {
|
||||||
//check for disabled worlds
|
//check for disabled worlds
|
||||||
if(!plugin.panelPerms.isPanelWorldEnabled(p,panel.getConfig())){
|
if(!plugin.panelPerms.isPanelWorldEnabled(p,panel.getConfig())){
|
||||||
if(!(panel.getConfig().getString("custom-messages.perms") == null)) {
|
if(panel.getConfig().getString("custom-messages.perms") != null) {
|
||||||
sender.sendMessage(plugin.tex.colour(plugin.tag + panel.getConfig().getString("custom-messages.perms")));
|
sender.sendMessage(plugin.tex.colour(plugin.tag + panel.getConfig().getString("custom-messages.perms")));
|
||||||
return;
|
return;
|
||||||
}else {
|
}else {
|
||||||
@ -111,7 +111,7 @@ public class ExecuteOpenVoids {
|
|||||||
p.closeInventory();
|
p.closeInventory();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if(!(panel.getConfig().getString("custom-messages.perms") == null)) {
|
if(panel.getConfig().getString("custom-messages.perms") != null) {
|
||||||
sender.sendMessage(plugin.tex.colour(plugin.tag + panel.getConfig().getString("custom-messages.perms")));
|
sender.sendMessage(plugin.tex.colour(plugin.tag + panel.getConfig().getString("custom-messages.perms")));
|
||||||
return;
|
return;
|
||||||
}else {
|
}else {
|
||||||
|
Loading…
Reference in New Issue
Block a user