mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-06 06:41:44 +00:00
Update CommandToolStats.java
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user