mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-19 13:55:00 +00:00
293ea04c56
* rename everything containing staff back to admin (as requested by ryan i've renamed commands like slconfig to saconfig but left "slconfig" as an alias) * format almost every file correctly * a few other improvements
32 lines
652 B
Java
32 lines
652 B
Java
package me.totalfreedom.totalfreedommod.blocking.command;
|
|
|
|
public enum CommandBlockerAction
|
|
{
|
|
|
|
BLOCK("b"),
|
|
BLOCK_AND_EJECT("a"),
|
|
BLOCK_UNKNOWN("u");
|
|
private final String token;
|
|
|
|
CommandBlockerAction(String token)
|
|
{
|
|
this.token = token;
|
|
}
|
|
|
|
public String getToken()
|
|
{
|
|
return this.token;
|
|
}
|
|
|
|
public static CommandBlockerAction fromToken(String token)
|
|
{
|
|
for (CommandBlockerAction action : CommandBlockerAction.values())
|
|
{
|
|
if (action.getToken().equalsIgnoreCase(token))
|
|
{
|
|
return action;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
} |