Scoreboards default to true and more player tags.
This commit is contained in:
parent
e7f8060441
commit
644e1ec8fb
@ -94,7 +94,7 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
protected transient boolean loginPvpDisabled;
|
||||
|
||||
protected boolean spyingChat = false;
|
||||
protected boolean showScoreboard;
|
||||
protected boolean showScoreboard = true;
|
||||
|
||||
protected WarmUpUtil.Warmup warmup;
|
||||
protected int warmupTask;
|
||||
@ -267,7 +267,7 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
this.spyingChat = other.spyingChat;
|
||||
this.lastStoodAt = other.lastStoodAt;
|
||||
this.isAdminBypassing = other.isAdminBypassing;
|
||||
this.showScoreboard = P.p.getConfig().getBoolean("scoreboard.default-enabled", false);
|
||||
this.showScoreboard = P.p.getConfig().getBoolean("scoreboard.default-enabled", true);
|
||||
}
|
||||
|
||||
public void resetFactionData(boolean doSpoutUpdate) {
|
||||
|
@ -31,6 +31,8 @@ public enum TagReplacer {
|
||||
PLAYER_GROUP(TagType.PLAYER, "{group}"),
|
||||
LAST_SEEN(TagType.PLAYER, "{lastSeen}"),
|
||||
PLAYER_BALANCE(TagType.PLAYER, "{balance}"),
|
||||
PLAYER_POWER(TagType.PLAYER, "{player-power}"),
|
||||
PLAYER_MAXPOWER(TagType.PLAYER, "{player-maxpower}"),
|
||||
|
||||
/**
|
||||
* Faction variables, require at least a player
|
||||
@ -144,6 +146,10 @@ public enum TagReplacer {
|
||||
return P.p.getPrimaryGroup(Bukkit.getOfflinePlayer(UUID.fromString(fp.getId())));
|
||||
case PLAYER_BALANCE:
|
||||
return Econ.isSetup() ? Econ.getFriendlyBalance(fp) : TL.ECON_OFF.format("balance");
|
||||
case PLAYER_POWER:
|
||||
return String.valueOf(fp.getPowerRounded());
|
||||
case PLAYER_MAXPOWER:
|
||||
return String.valueOf(fp.getPowerMaxRounded());
|
||||
}
|
||||
}
|
||||
switch (this) {
|
||||
|
Loading…
Reference in New Issue
Block a user