Add ShopType enum
This commit is contained in:
1 parent
10e2f322b3
commit
5c9141003f
1 file changed
+23
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user