mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +01:00
parent
79449ef663
commit
fdf1875e7f
@ -34,7 +34,7 @@ public class Commandpotion extends EssentialsCommand {
|
|||||||
final Set<String> potionslist = new TreeSet<>();
|
final Set<String> potionslist = new TreeSet<>();
|
||||||
for (final Map.Entry<String, PotionEffectType> entry : Potions.entrySet()) {
|
for (final Map.Entry<String, PotionEffectType> entry : Potions.entrySet()) {
|
||||||
final String potionName = entry.getValue().getName().toLowerCase(Locale.ENGLISH);
|
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());
|
potionslist.add(entry.getKey());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@ public class Commandpotion extends EssentialsCommand {
|
|||||||
}
|
}
|
||||||
for (final Map.Entry<String, PotionEffectType> entry : Potions.entrySet()) {
|
for (final Map.Entry<String, PotionEffectType> entry : Potions.entrySet()) {
|
||||||
final String potionName = entry.getValue().getName().toLowerCase(Locale.ENGLISH);
|
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());
|
options.add("effect:" + entry.getKey());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user