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"));
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")