mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-01 04:26:42 +00:00
Moved resources to correct folder Fixed and improved build information, no longer tracking build.properties
33 lines
661 B
Java
33 lines
661 B
Java
package me.totalfreedom.totalfreedommod.blocking.command;
|
|
|
|
public enum CommandBlockerAction
|
|
{
|
|
|
|
BLOCK("b"),
|
|
BLOCK_AND_EJECT("a"),
|
|
BLOCK_UNKNOWN("u");
|
|
private final String token;
|
|
|
|
private 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;
|
|
}
|
|
}
|