mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2024-12-04 00:23:23 +01:00
10.2.0 release
This commit is contained in:
parent
5a251848c5
commit
ffe5025569
@ -28,7 +28,7 @@ public class ChestSortCommand implements CommandExecutor {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!plugin.getConfig().getBoolean("allow-commands")) {
|
if(!plugin.getConfig().getBoolean("allow-commands") && !sender.isOp()) {
|
||||||
sender.sendMessage(command.getPermissionMessage());
|
sender.sendMessage(command.getPermissionMessage());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ public class InvSortCommand implements CommandExecutor {
|
|||||||
|
|
||||||
Player p = null;
|
Player p = null;
|
||||||
|
|
||||||
if(!plugin.getConfig().getBoolean("allow-commands")) {
|
if(!plugin.getConfig().getBoolean("allow-commands") && !sender.isOp()) {
|
||||||
sender.sendMessage(command.getPermissionMessage());
|
sender.sendMessage(command.getPermissionMessage());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user