mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-13 14:58:35 +00:00
Convert stop/remove to string literals. Resolves #168
Removed TFM_Util.isStopCommand(String) and TFM_Util.isRemoveCommand(String)
This commit is contained in:
@ -45,8 +45,6 @@ public class TFM_Util
|
||||
{
|
||||
private static final Map<String, Integer> ejectTracker = new HashMap<String, Integer>();
|
||||
public static final Map<String, EntityType> mobtypes = new HashMap<String, EntityType>();
|
||||
public static final List<String> STOP_COMMANDS = Arrays.asList("stop", "off", "end", "halt", "die");
|
||||
public static final List<String> REMOVE_COMMANDS = Arrays.asList("del", "delete", "rem", "remove");
|
||||
public static final List<String> DEVELOPERS = Arrays.asList("Madgeek1450", "DarthSalamon", "AcidicCyanide", "wild1145", "WickedGamingUK", "xXWilee999Xx");
|
||||
private static final Random RANDOM = new Random();
|
||||
public static String DATE_STORAGE_FORMAT = "EEE, d MMM yyyy HH:mm:ss Z";
|
||||
@ -430,16 +428,6 @@ public class TFM_Util
|
||||
return new File(plugin.getDataFolder(), name);
|
||||
}
|
||||
|
||||
public static boolean isStopCommand(String command)
|
||||
{
|
||||
return STOP_COMMANDS.contains(command.toLowerCase());
|
||||
}
|
||||
|
||||
public static boolean isRemoveCommand(String command)
|
||||
{
|
||||
return REMOVE_COMMANDS.contains(command.toLowerCase());
|
||||
}
|
||||
|
||||
public static void autoEject(Player player, String kickMessage)
|
||||
{
|
||||
EjectMethod method = EjectMethod.STRIKE_ONE;
|
||||
|
Reference in New Issue
Block a user