Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit bd92754

Browse files
committed
Correct boolean logic to fix /trail clearall
1 parent e53068d commit bd92754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ca/jamiesinn/trailgui/commands/CommandTrail.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
9292

9393
if (args[0].equalsIgnoreCase("clearall"))
9494
{
95-
if (!player.hasPermission("trailgui.commands.clearall") || !player.hasPermission("trailgui.*"))
95+
if (!player.hasPermission("trailgui.commands.clearall") && !player.hasPermission("trailgui.*"))
9696
{
9797
player.sendMessage(TrailGUI.getPlugin().getConfig().getString("Commands-denyPermissionMessage").replaceAll("&", "\u00A7"));
9898
return false;
@@ -103,7 +103,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
103103
player.sendMessage(this.trailGUI.getConfig().getString("ClearAll-message").replaceAll("&", "\u00A7").replaceAll("%TrailName%", "ClearAll"));
104104
return true;
105105
}
106-
if (!player.hasPermission("trailgui.commands.clearall.other") || !player.hasPermission("trailgui.*"))
106+
if (!player.hasPermission("trailgui.commands.clearall.other") && !player.hasPermission("trailgui.*"))
107107
{
108108
player.sendMessage(TrailGUI.getPlugin().getConfig().getString("Commands-denyPermissionMessage").replaceAll("&", "\u00A7"));
109109
return true;

0 commit comments

Comments
 (0)