mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-31 04:46:42 +00:00
Or statement should be And
This commit is contained in:
@@ -73,7 +73,7 @@ public class CosmeticCommand implements CommandExecutor {
|
||||
|
||||
switch (firstArgs) {
|
||||
case ("reload") -> {
|
||||
if (!sender.hasPermission("HMCCosmetics.cmd.reload") || !sender.isOp()) {
|
||||
if (!sender.hasPermission("HMCCosmetics.cmd.reload") && !sender.isOp()) {
|
||||
if (!silent) MessagesUtil.sendMessage(sender, "no-permission");
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user