mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-13 21:08:34 +00:00
Misc
This commit is contained in:
@ -9,6 +9,7 @@ import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.URI;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Deque;
|
||||
import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
@ -500,4 +501,19 @@ public class TFM_Util
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
|
||||
private static final List<String> stop_commands = new ArrayList<String>();
|
||||
static
|
||||
{
|
||||
stop_commands.add("stop");
|
||||
stop_commands.add("off");
|
||||
stop_commands.add("end");
|
||||
stop_commands.add("halt");
|
||||
stop_commands.add("die");
|
||||
}
|
||||
|
||||
public static boolean isStopCommand(String command)
|
||||
{
|
||||
return stop_commands.contains(command.toLowerCase());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user