Update CommandToolStats.java

This commit is contained in:
hyperdefined
2022-08-19 17:39:25 -04:00
parent 082f529c32
commit a89b9d6f6a

View File

@@ -271,13 +271,16 @@ public class CommandToolStats implements TabExecutor {
if (args.length == 1) { if (args.length == 1) {
if (sender.hasPermission("toolstats.reload")) { if (sender.hasPermission("toolstats.reload")) {
return Arrays.asList("reset", "reload"); return Arrays.asList("reset", "reload");
} else { }
if (sender.hasPermission("toolstats.reset")) {
return Collections.singletonList("reset"); return Collections.singletonList("reset");
} }
} }
if (args.length == 2) { if (args.length == 2) {
if (args[0].equalsIgnoreCase("reset")) { if (args[0].equalsIgnoreCase("reset")) {
return Collections.singletonList("confirm"); if (sender.hasPermission("toolstats.reset.confirm")) {
return Collections.singletonList("confirm");
}
} }
} }
return null; return null;