From 78f4820876f42f7b50bf88f64afd45bee939e4e4 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 12 Mar 2012 10:39:36 +1100 Subject: Initial formatted and slightly tweaked version of @evenprime 's NoCheat. Will be intergrated into the main Essentials as soon as possible --- .../anticheat/actions/ParameterName.java | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/actions/ParameterName.java (limited to 'EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/actions/ParameterName.java') diff --git a/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/actions/ParameterName.java b/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/actions/ParameterName.java new file mode 100644 index 000000000..6f2b2181e --- /dev/null +++ b/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/actions/ParameterName.java @@ -0,0 +1,35 @@ +package com.earth2me.essentials.anticheat.actions; + + +/** + * Some wildcards that are used in commands and log messages + */ +public enum ParameterName +{ + PLAYER("player"), LOCATION("location"), WORLD("world"), + VIOLATIONS("violations"), MOVEDISTANCE("movedistance"), + REACHDISTANCE("reachdistance"), FALLDISTANCE("falldistance"), + LOCATION_TO("locationto"), CHECK("check"), PACKETS("packets"), + TEXT("text"), PLACE_LOCATION("placelocation"), + PLACE_AGAINST("placeagainst"), BLOCK_TYPE("blocktype"), LIMIT("limit"), + FOOD("food"), SERVERS("servers"); + private final String s; + + private ParameterName(String s) + { + this.s = s; + } + + public static ParameterName get(String s) + { + for (ParameterName c : ParameterName.values()) + { + if (c.s.equals(s)) + { + return c; + } + } + + return null; + } +} -- cgit v1.2.3