forked from SteamWar/SteamWar
Fix TNTClickListener
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ public class TNTClickListener extends SWCommand implements Listener {
|
|||||||
super("tntdetails");
|
super("tntdetails");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Register("TNT_DETAILS_COMMAND")
|
@Register(description = "TNT_DETAILS_COMMAND")
|
||||||
public void toggle(Player player) {
|
public void toggle(Player player) {
|
||||||
YAPIONObject yapionObject = Config.getInstance().get(player);
|
YAPIONObject yapionObject = Config.getInstance().get(player);
|
||||||
if (yapionObject.getOrSetDefault(TNT_CLICK_DETAILS, new YAPIONValue<>(true)).asBoolean().orElse(true)) {
|
if (yapionObject.getOrSetDefault(TNT_CLICK_DETAILS, new YAPIONValue<>(true)).asBoolean().orElse(true)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user