Add ShopType enum
This commit is contained in:
parent
10e2f322b3
commit
5c9141003f
23
src/main/java/com/alttd/playershops/shop/ShopType.java
Normal file
23
src/main/java/com/alttd/playershops/shop/ShopType.java
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
package com.alttd.playershops.shop;
|
||||||
|
|
||||||
|
import com.alttd.playershops.config.ShopMessageConfig;
|
||||||
|
|
||||||
|
public enum ShopType {
|
||||||
|
|
||||||
|
SELL,
|
||||||
|
BUY,
|
||||||
|
GAMBLE,
|
||||||
|
BARTER;
|
||||||
|
|
||||||
|
private final ShopMessageConfig shopMessageConfig;
|
||||||
|
|
||||||
|
ShopType() {
|
||||||
|
this.shopMessageConfig = new ShopMessageConfig(toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return name().toLowerCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user