diff --git a/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java b/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java index f5a64cc67..3f62f36b6 100644 --- a/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PartyCommand.java @@ -57,7 +57,7 @@ public class PartyCommand implements CommandExecutor { return partyInfoCommand.onCommand(sender, command, label, args); } - PartySubcommand subcommand = PartySubcommand.getSubcommand(args[0]); + PartySubcommandType subcommand = PartySubcommandType.getSubcommand(args[0]); if (subcommand == null) { return printUsage(); diff --git a/src/main/java/com/gmail/nossr50/party/commands/PartySubcommand.java b/src/main/java/com/gmail/nossr50/party/commands/PartySubcommandType.java similarity index 82% rename from src/main/java/com/gmail/nossr50/party/commands/PartySubcommand.java rename to src/main/java/com/gmail/nossr50/party/commands/PartySubcommandType.java index 87c39c587..925dd6d63 100644 --- a/src/main/java/com/gmail/nossr50/party/commands/PartySubcommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PartySubcommandType.java @@ -1,6 +1,6 @@ package com.gmail.nossr50.party.commands; -public enum PartySubcommand { +public enum PartySubcommandType { JOIN, ACCEPT, CREATE, @@ -20,8 +20,8 @@ public enum PartySubcommand { TELEPORT, CHAT; - public static PartySubcommand getSubcommand(String commandName) { - for (PartySubcommand command : values()) { + public static PartySubcommandType getSubcommand(String commandName) { + for (PartySubcommandType command : values()) { if (command.name().equalsIgnoreCase(commandName)) { return command; }