mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
That was poorly named.
This commit is contained in:
parent
9db2d50676
commit
d7e74b9fe0
@ -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();
|
||||
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user