9
0
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:
LoJoSho
2023-02-05 10:40:17 -06:00
parent eb03acd959
commit 8b223228ce

View File

@@ -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;
}