better variable names

This commit is contained in:
mfnalex 2019-04-29 15:50:36 +02:00
parent cb8b6d81d2
commit 909b99cd65

View File

@ -14,10 +14,10 @@ public class JeffChestSortCommandExecutor implements CommandExecutor {
}
@Override
public boolean onCommand(CommandSender sender, Command arg1, String arg2, String[] arg3) {
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
// This command toggles automatic chest sorting for the player that runs the command
if (arg1.getName().equalsIgnoreCase("chestsort")) {
if (command.getName().equalsIgnoreCase("chestsort")) {
if (!(sender instanceof Player)) {
sender.sendMessage(plugin.messages.MSG_PLAYERSONLY);