Protection, Placeholder and fix
Add : - PlaceHolder %faction_name_at_location% - Add protection with farm land - Add protection to shulkers, to beacon, cauldron and brewing stand - Add protection with bone meal - Convert permission for the command Fix : - Console /f list - Console /f show - Claim with Wilderness is unclaim the land - Dynmap players.admins and players.admins.count is for co-leader. The leader already have players.leader and a faction have one leader only Optimization
This commit is contained in:
@@ -155,7 +155,9 @@ public class ClipPlaceholderAPIManager extends PlaceholderExpansion implements R
|
||||
return String.valueOf(faction.getDeaths());
|
||||
case "faction_maxvaults":
|
||||
return String.valueOf(faction.getMaxVaults());
|
||||
|
||||
case "faction_name_at_location":
|
||||
Faction factionAtLocation = Board.getInstance().getFactionAt(new FLocation(player.getLocation()));
|
||||
return factionAtLocation != null ? factionAtLocation.getTag():Factions.getInstance().getWilderness().getTag();
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user