Skip to content

Commit

Permalink
Fix incorrect permission node in /potion (#5552)
Browse files Browse the repository at this point in the history
Fixes #5549.
  • Loading branch information
JRoy authored Oct 24, 2023
1 parent 79449ef commit fdf1875
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected void run(final Server server, final User user, final String commandLab
final Set<String> potionslist = new TreeSet<>();
for (final Map.Entry<String, PotionEffectType> entry : Potions.entrySet()) {
final String potionName = entry.getValue().getName().toLowerCase(Locale.ENGLISH);
if (potionslist.contains(potionName) || user.isAuthorized("essentials.potion." + potionName)) {
if (potionslist.contains(potionName) || user.isAuthorized("essentials.potions." + potionName)) {
potionslist.add(entry.getKey());
}
}
Expand Down Expand Up @@ -85,7 +85,7 @@ protected List<String> getTabCompleteOptions(final Server server, final User use
}
for (final Map.Entry<String, PotionEffectType> entry : Potions.entrySet()) {
final String potionName = entry.getValue().getName().toLowerCase(Locale.ENGLISH);
if (user.isAuthorized("essentials.potion." + potionName)) {
if (user.isAuthorized("essentials.potions." + potionName)) {
options.add("effect:" + entry.getKey());
}
}
Expand Down

0 comments on commit fdf1875

Please sign in to comment.