small fix with placeholder

This commit is contained in:
Driftay 2019-10-13 11:08:17 -04:00
parent 40d6054275
commit bdc658922f
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package com.massivecraft.factions.tag;
import com.massivecraft.factions.FPlayers;
import com.massivecraft.factions.Factions;
import com.massivecraft.factions.FactionsPlugin;
import com.massivecraft.factions.zcore.util.TL;
@ -12,7 +13,8 @@ public enum GeneralTag implements Tag {
MAX_ALLIES("{max-allies}", () -> getRelation("ally")),
MAX_ENEMIES("{max-enemies}", () -> getRelation("enemy")),
MAX_TRUCES("{max-truces}", () -> getRelation("truce")),
FACTIONLESS("{factionless}", () -> String.valueOf(Factions.getInstance().getNone().getFPlayersWhereOnline(true).size())),
FACTIONLESS("factionless", () -> String.valueOf(FPlayers.getInstance().getOnlinePlayers().stream().filter(p -> !p.hasFaction()).count())),
FACTIONLESS_TOTAL("factionless-total", () -> String.valueOf(FPlayers.getInstance().getAllFPlayers().stream().filter(p -> !p.hasFaction()).count())),
TOTAL_ONLINE("{total-online}", () -> String.valueOf(Bukkit.getOnlinePlayers().size())),
;

View File

@ -1327,6 +1327,7 @@ Tntfill:
# - {offline-list} : Lists all offline members with tooltips
# - {alts} : List all alts online or offline
# - {truces-list} : Lists each faction truce with tooltips
# - {factionless-total} : Count of all factionless players online
# Player variables. Can be used in tooltips.show, scoreboards, or /f show
# - {group} : Players group