Skip to content

Commit a89b9d6

Browse files
committed
Update CommandToolStats.java
1 parent 082f529 commit a89b9d6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main/java/lol/hyper/toolstats/commands/CommandToolStats.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,16 @@ public List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Comman
271271
if (args.length == 1) {
272272
if (sender.hasPermission("toolstats.reload")) {
273273
return Arrays.asList("reset", "reload");
274-
} else {
274+
}
275+
if (sender.hasPermission("toolstats.reset")) {
275276
return Collections.singletonList("reset");
276277
}
277278
}
278279
if (args.length == 2) {
279280
if (args[0].equalsIgnoreCase("reset")) {
280-
return Collections.singletonList("confirm");
281+
if (sender.hasPermission("toolstats.reset.confirm")) {
282+
return Collections.singletonList("confirm");
283+
}
281284
}
282285
}
283286
return null;

0 commit comments

Comments
 (0)