Don't set sidebar visibility if scoreboard is disabled in the config. Resolves #298.

This commit is contained in:
drtshock 2015-03-06 16:24:21 -07:00
parent 607be6b8fb
commit 3933e135c1

View File

@ -69,11 +69,11 @@ public class FactionsPlayerListener implements Listener {
}
}, 33L); // Don't ask me why.
FScoreboard.init(me);
if (P.p.getConfig().getBoolean("scoreboard.default-enabled", false)) {
FScoreboard.init(me);
FScoreboard.get(me).setDefaultSidebar(new FDefaultSidebar(), P.p.getConfig().getInt("default-update-interval", 20));
FScoreboard.get(me).setSidebarVisibility(P.p.cmdBase.cmdSB.showBoard(me));
}
FScoreboard.get(me).setSidebarVisibility(P.p.cmdBase.cmdSB.showBoard(me));
Faction myFaction = me.getFaction();
if (!myFaction.isNone()) {