Create a default option for pushing

This commit is contained in:
libraryaddict 2016-12-21 16:50:36 +13:00
parent 448dd06104
commit e1cd672207

View File

@ -146,7 +146,8 @@ public class DisguiseConfig {
setDisabledInvisibility(config.getBoolean("DisableInvisibility")); setDisabledInvisibility(config.getBoolean("DisableInvisibility"));
try { try {
disablePushing = DisguisePushing.valueOf(config.getString("DisablePushing").toUpperCase()); disablePushing = DisguisePushing
.valueOf(config.getString("DisablePushing", DisguisePushing.MODIFY.name()).toUpperCase());
} }
catch (Exception ex) { catch (Exception ex) {
System.out.println("[LibsDisguises] Cannot parse '" + config.getString("SelfDisguisesTeams") System.out.println("[LibsDisguises] Cannot parse '" + config.getString("SelfDisguisesTeams")