Fix incorrect permission node in /potion (#5552)

Fixes #5549.
This commit is contained in:
Josh Roy 2023-10-24 17:24:06 -04:00 committed by GitHub
parent 79449ef663
commit fdf1875e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public class Commandpotion extends EssentialsCommand {
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());
}
}
@ -85,7 +85,7 @@ public class Commandpotion extends EssentialsCommand {
}
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());
}
}