summaryrefslogtreecommitdiffstats
path: root/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/actions/ParameterName.java
blob: 6f2b2181e881cf8a0ffe32dea7bbdbbfe3189f9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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;
	}
}