mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-06 20:50:46 +02:00
Golden rule of commiting, don't make formatting worse in a cleanup commit.
This commit is contained in:
@@ -18,10 +18,10 @@ public class Commanditem extends EssentialsCommand
|
|||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
|
|
||||||
}
|
}
|
||||||
if (args.length > 1 && "love".equals(args[0]) && "you".equals(args[1]))
|
if (args.length > 1 && args[0].equals("love") && args[1].equals("you"))
|
||||||
{
|
{
|
||||||
user.sendMessage("What is love?");
|
user.sendMessage("What is love?");
|
||||||
user.sendMessage("Baby don't hurt me");
|
user.sendMessage("Baby don't hurt me");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final ItemStack stack = ess.getItemDb().get(args[0], user);
|
final ItemStack stack = ess.getItemDb().get(args[0], user);
|
||||||
@@ -68,6 +68,6 @@ public class Commanditem extends EssentialsCommand
|
|||||||
user.giveItems(stack, false);
|
user.giveItems(stack, false);
|
||||||
|
|
||||||
final String displayName = stack.getType().toString().toLowerCase(Locale.ENGLISH).replace('_', ' ');
|
final String displayName = stack.getType().toString().toLowerCase(Locale.ENGLISH).replace('_', ' ');
|
||||||
user.sendMessage(_("itemSpawn", stack.getAmount(), displayName));
|
user.sendMessage(_("itemSpawn", stack.getAmount(), displayName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user