Added: Region blacklisting
You can now blacklist regions in the config! If a player is in both a wanted and a blacklisted region, the quest will not activate. After this update, I will be focusing on the bug fixes.
THIS UPDATE ADDS LINES TO THE CONFIG.YML. READ BELOW FOR DETAILS. YOU CAN ALSO LET THE PLUGIN AUTO REGENERATE THE CONFIG FOR YOU.
Config.yml additions:
1. add this under CheckWorldGuard
Code (Text):
#Whether you want the plugin to check for blacklisted regions.
CheckBlacklist: 'true'
2. add this under Regions
Code (Text):
#Name of regions you want the quest item to NOT work in (Not case specific)
RegionBlacklist:
- 'safezone'
- 'spawn'
New Config.yml:
Code (Text):
#Config Version 1 by Yukun
#Placeholders:
#- %player% for player's display name -- usable in quest item lores and names, and messages for beginning and completing the quest.
#- %rank% for rank name with colour codes -- usable in quest item lores and names, and messages for beginning and completing the quest.
#- %time% for time left on the quest item -- usable in CdName.
RankQuestOptions:
#Whether you want the plugin to check if the player is in Warzone
CheckWarzone: 'true'
#Whether you want the plugin to check if the player is in Worldguard regions. If both factions and worldguard are enabled, WORLDGUARD GETS CHECKED FIRST.
CheckWorldGuard: 'true'
#Whether you want the plugin to check for blacklisted regions.
CheckBlacklist: 'true'
#Name of Warzone
WarzoneName: 'Warzone'
#Whether you want the plugin to check for the PvP flag in worldguard. Default false.
PvPFlag: 'false'
#Name of regions you want the quest item to work in (Not case specific)
Regions:
- 'pvp'
- 'warzone'
#Name of regions you want the quest item to NOT work in (Not case specific)
RegionBlacklist:
- 'safezone'
- 'spawn'
#Name of item to start quest.
Name: '%rank% &bQuest &7(Right Click)'
#Please use bukkit item names for this.
QuestItemType: 'MAGMA_CREAM'
#Name of item while doing quest. (usable placeholders: %time%, %rank%, %player%)
CdName: '%rank% &bQuest <%time%s>'
CdLore: #Lore for item while it is counting down. (usable placeholders: %rank%, %player%)
- '&b&lRank Quest Started!'
- '&7Survive in the &cWarzone&7 long enough'
- '&7to complete this Rank Quest and'
- '&7receive a %rank% &bRank Voucher!'
- ''
- '&7You must survive until the quest timer'
- '&7runs out to receive your %rank% &bRank.'
- ''
- '&c&lWARNING: &r&7If you leave the &cWarzone&7'
- '&7at any time, the quest timer resets.'
Lore: #Lore to be added to the quest item that is given to the player. (usable placeholders: %rank%, %player%)
- '&7Survive in the &cWarzone &7long enough'
- '&7to complete this Rank Quest and'
- '&7receive a %rank% &bRank.'
- ''
- '&f&lUSE: &r&7To begin this rank quest,'
- '&f&lright-click &r&7this item inside the &cWarzone&7.'
- '&7You must survive until the quest timer'
- '&7runs out to receive your %rank% &bRank.'
- ''
- '&c&lWARNING: &r&7If you leave the &cWarzone&7'
- '&7at any time, the quest timer resets.'
Ranks: #List your ranks here, then add the rank below. You can also add a dummy rank just to add a voucher into the list. :D That means u can basically use this like a vouchers plugin.
- 'VIP'
VIP: #Name of rank listed under Ranks
#name of rank with colour codes (used for %rank% placeholder)
RankName: '&fVIP'
#Time of the quest in seconds.
Time: '30'
Voucher: #Settings for rank voucher
#item name for rank voucher (usable placeholders: %rank%)
Name: '&b&lRANK &e"&l%rank%&r&e" &7(Right Click)'
#Number of vouchers given to the player when quest is completed.
Amount: '1'
#The item you want to use as the Voucher. Please use bukkit item names for this.
VoucherItemType: 'PAPER'
#Commands to run when voucher is clicked. Make sure this is a console compatible command!
Commands:
- 'manuadd %player% VIP'
Lore: #Lore to be added to the voucher item (usable placeholders: %rank%, %player%)
- '&7Use this item to'
- '&7get the &fVIP Rank'
- '&7on the &cFactions &7server!'
- '&7Given to: %player%'