That was poorly named.

This commit is contained in:
GJ 2013-02-12 14:38:49 -05:00
parent 9db2d50676
commit d7e74b9fe0
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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;
}