From e1cd6722079ff81f183ca98edd247c64673ea629 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 21 Dec 2016 16:50:36 +1300 Subject: [PATCH] Create a default option for pushing --- src/me/libraryaddict/disguise/DisguiseConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/DisguiseConfig.java b/src/me/libraryaddict/disguise/DisguiseConfig.java index a5e0261f..3a89a637 100644 --- a/src/me/libraryaddict/disguise/DisguiseConfig.java +++ b/src/me/libraryaddict/disguise/DisguiseConfig.java @@ -146,7 +146,8 @@ public class DisguiseConfig { setDisabledInvisibility(config.getBoolean("DisableInvisibility")); try { - disablePushing = DisguisePushing.valueOf(config.getString("DisablePushing").toUpperCase()); + disablePushing = DisguisePushing + .valueOf(config.getString("DisablePushing", DisguisePushing.MODIFY.name()).toUpperCase()); } catch (Exception ex) { System.out.println("[LibsDisguises] Cannot parse '" + config.getString("SelfDisguisesTeams")