Adds per faction warps functionality from #72.

Default max warps per faction is 5. It can be changed in the config.yml.
You can now use {warps} in the info board to show how many warps a faction has when you walk into their territory.
Only faction mods+ can set faction warps.
This commit is contained in:
drtshock
2014-11-07 11:49:54 -06:00
parent 35813c7210
commit 8b64b4bfe1
14 changed files with 192 additions and 5 deletions

View File

@@ -19,6 +19,10 @@ findfactionsexploit:
cooldown: 2000 # in miliseconds. 2000 = 2 seconds.
log: false
# Warps
# What should be the max amount of warps that a Factoin can set?
max-warps: 5
# Configuration section for Scoreboards
# This will allow you to completely customize how your scoreboards look.
# Make sure that no lines are duplicates of each other otherwise only the first will display.
@@ -34,6 +38,7 @@ scoreboard:
# {power} - faction's power. {chunks} - total claimed chunks. {members} - total members.
# {online} - online members. {leader} - faction's leader. {open} - shows either true or false if open.
# {raidable} - true if the faction can be claimed over, otherwise false.
# {warps} - the number of warps that a faction has set.
# The title of the scoreboard will be the Faction's tag and colored according to the relation with the player's Faction.
# Commenting this section out will cause the info to appear in chat as the plugin originally did.
finfo-enabled: false # Default to false to keep original functionality.
@@ -52,6 +57,7 @@ scoreboard:
# Replace {name} - player's name. {faction} - player's faction title, factionless if none.
# {totalOnline} - total players on the server. {balance} - player's balance.
# {maxPower} - player's max power.
# {powerBoost} - player's powerboost.
default-enabled: false # Default to false to keep original functionality.
default-title: "i love drt" # Can use any of the values from above but this won't update once it's set (so don't set {balance}).

View File

@@ -233,4 +233,8 @@ permissions:
factions.showinvites:
description: show pending invites to your faction
factions.seechunk:
description: see the chunk you stand in
description: see the chunk you stand in
factions.setwarp:
description: set a warp for your faction
factions.warp:
description: access your faction warps