Update CommandToolStats.java

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

View File

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