mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-03 12:31:46 +00:00
Run IntelliJ IDEA inspections
This commit is contained in:
parent
c03765803c
commit
73ac6488ce
46 changed files with 134 additions and 158 deletions
|
@ -29,7 +29,7 @@ public class Commandpotion extends EssentialsCommand {
|
|||
final ItemStack stack = user.getBase().getItemInHand();
|
||||
|
||||
if (args.length == 0) {
|
||||
final Set<String> potionslist = new TreeSet<String>();
|
||||
final Set<String> potionslist = new TreeSet<>();
|
||||
for (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))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue