Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/modtool/ModToolBanType.java
2019-05-26 21:15:26 +03:00

29 lines
585 B
Java

package com.eu.habbo.habbohotel.modtool;
public enum ModToolBanType {
ACCOUNT("account"),
MACHINE("machine"),
SUPER("super"),
IP("ip"),
UNKNOWN("???");
private final String type;
ModToolBanType(String type) {
this.type = type;
}
public static ModToolBanType fromString(String type) {
for (ModToolBanType t : ModToolBanType.values()) {
if (t.type.equalsIgnoreCase(type)) {
return t;
}
}
return UNKNOWN;
}
public String getType() {
return this.type;
}
}