mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +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);
|
return partyInfoCommand.onCommand(sender, command, label, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
PartySubcommand subcommand = PartySubcommand.getSubcommand(args[0]);
|
PartySubcommandType subcommand = PartySubcommandType.getSubcommand(args[0]);
|
||||||
|
|
||||||
if (subcommand == null) {
|
if (subcommand == null) {
|
||||||
return printUsage();
|
return printUsage();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package com.gmail.nossr50.party.commands;
|
package com.gmail.nossr50.party.commands;
|
||||||
|
|
||||||
public enum PartySubcommand {
|
public enum PartySubcommandType {
|
||||||
JOIN,
|
JOIN,
|
||||||
ACCEPT,
|
ACCEPT,
|
||||||
CREATE,
|
CREATE,
|
||||||
@ -20,8 +20,8 @@ public enum PartySubcommand {
|
|||||||
TELEPORT,
|
TELEPORT,
|
||||||
CHAT;
|
CHAT;
|
||||||
|
|
||||||
public static PartySubcommand getSubcommand(String commandName) {
|
public static PartySubcommandType getSubcommand(String commandName) {
|
||||||
for (PartySubcommand command : values()) {
|
for (PartySubcommandType command : values()) {
|
||||||
if (command.name().equalsIgnoreCase(commandName)) {
|
if (command.name().equalsIgnoreCase(commandName)) {
|
||||||
return command;
|
return command;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user