Completely Reformatted Alts System for Better Performance and Command Help

This commit is contained in:
Driftay
2019-05-22 20:12:46 -04:00
parent c5445e2d17
commit edc62a8493
13 changed files with 310 additions and 14 deletions

View File

@@ -155,6 +155,8 @@ public class ClipPlaceholderAPIManager extends PlaceholderExpansion implements R
return String.valueOf(faction.getDeaths());
case "faction_maxvaults":
return String.valueOf(faction.getMaxVaults());
case "faction_grace":
return String.valueOf(Conf.gracePeriod);
case "faction_name_at_location":
Faction factionAtLocation = Board.getInstance().getFactionAt(new FLocation(player.getLocation()));
return factionAtLocation != null ? factionAtLocation.getTag() : Factions.getInstance().getWilderness().getTag();