SavageLabs / SavageFactions

The Ultimate Competitve Factions Plugin. Switches focus from casual factions and introduces new features for competitive factions.
https://savagelabs.net
GNU General Public License v3.0
95 stars 63 forks source link

Feature Request - Choose between Blacklist and Whitelist for world-related configurations #171

Closed Drc-DEV closed 5 years ago

Drc-DEV commented 5 years ago

Is your feature request related to a problem? Please describe. When setting worldsNoClaiming, worldsNoPowerLoss, worldsIgnorePvP, worldsNoWildernessProtection and generally speaking per-world related configurations, depending on the type of server setup it is sometimes to have a Blacklist and sometimes to have a whitelist. With Factions it's usually the best to have these configurations as Whitelist, as most servers usually have only 2-3 worlds dedicated to claiming/pvp/powerloss/wilderness and several more for events/parkours/spawn/warps ... There are also servers that constantly add new worlds in the server, which would really benefit from this feature (like mine), where adding a new world means to remember to add it to the various configurations, while having a Whitelist would be ideal in this kind of scenario.

Describe the solution you'd like I'd like to have a configurable toggle in conf.json, which would be something like "worldConfigAsWhitelist: true", which if true, treats the configurations as whitelists and if false as blacklists.