mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-27 12:46:09 +01:00
Don't set sidebar visibility if scoreboard is disabled in the config. Resolves #298.
This commit is contained in:
parent
607be6b8fb
commit
3933e135c1
@ -69,11 +69,11 @@ public class FactionsPlayerListener implements Listener {
|
|||||||
}
|
}
|
||||||
}, 33L); // Don't ask me why.
|
}, 33L); // Don't ask me why.
|
||||||
|
|
||||||
FScoreboard.init(me);
|
|
||||||
if (P.p.getConfig().getBoolean("scoreboard.default-enabled", false)) {
|
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).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();
|
Faction myFaction = me.getFaction();
|
||||||
if (!myFaction.isNone()) {
|
if (!myFaction.isNone()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user