parent
79449ef663
commit
fdf1875e7f
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue