@Override public void disable() { super.disable(); final PreventionManager pm = PreventionManager.getInstance(); final Prevention link = pm.getPrevention("link"); if (link != null && !link.getConfig().getBoolean("enable", false)) { pm.disablePrevention(link); } }
@Override public void enable() { super.enable(); this.kickMessages = new THashMap<Player, String>(); this.minimumPlayers = getConfig().getInt("minimumPlayers"); this.guestLimit = getConfig().getInt("guestLimit"); this.kickGuests = getConfig().getBoolean("kickGuests"); }
@Override public void enable() { super.enable(); PreventionManager.getInstance().enablePrevention("link"); }
@Override public void disable() { super.disable(); }