2 new flags, several fixes and HUGE back-end changes
Change Log 1.7.0
This update has been a long time coming, in that I've implemented a big back-end change that I've been waiting to do for a while (which may not make a huge amount of difference to you guys, but will make coding a lot easier).
The other BIG change is that Domain is now based on Paper rather than spigot jar - Spigot users will still be able to use it of course, and the bulk of all future changes will remain Spigot safe, however I'll be using some Paper features for some flags.
New Flags:
PREVENT_TNT_PRIMING
[PAPER ONLY] This flag prevents TNT from being primed at all, no matter what the source of the priming is. You can set the TNT on fire, you can shoot fire arrows at it, or you can even explode creepers next to it and it will not explode. As this flag is Paper supported only, setting this flag on your field will not do anything if you're running Spigot.
PREVENT_HEAL_ZOMBIE_VILLAGER_BY_NONALLOWED
This flag prevents non-allowed players in the field from converting zombie villagers into villagers.
Fixes:
PREVENT_INTERACT_SWEET_BERRY_BUSH_BY_NONALLOWED should now work to stop players from interacting with sweet berry bushes in fields they don't belong to
Add new flag screen should now work past page 4 (it had been replacing page 5 entries with page 6 entries)
Custom icons in flags.yml should now display properly in the flags page
Armor stands no longer get destroyed by explosions when you're preventing explosion damage
Crimson trapdoors are now included in PREVENT_INTERACT
Players can no longer saddle animals by right clicking them with a lead
Placed leads are now protected from other players if you have PREVENT_LEAD_BY_NONALLOWED turned on
Add the following to flags.yml
Code (YAML):
PREVENT_HEAL_ZOMBIE_VILLAGER_BY_NONALLOWED:
name: "&bPrevent Heal Zombie Villager by Non-Allowed" lore: "&fPrevents Non-Allowed players from healing|&fzombie villagers in the field" icon_on: LIME_STAINED_GLASS_PANE
icon_off: RED_STAINED_GLASS_PANE
locked: false
PREVENT_TNT_PRIMING:
name: "&bPrevent TNT Priming" lore: "&fPrevents TNT from priming to explode in the field" icon_on: LIME_STAINED_GLASS_PANE
icon_off: RED_STAINED_GLASS_PANE
locked: false
The API has been updated significantly - no more confusing APIResponse return values, so all old api functions have been deprecated and all but 2 have been replaced. Details as below:
Below is a list of old API functions on the left, and their replacements:
APIResponse checkPlayerFlag() - You can use FlagFunctions.flagAtLocation() for same functionality, just pass player Location instead of UUID
APIResponse playerAllowedAtLocation() - You can use PlayerFunctions.playerAllowedAtLocation and pass Player rather than UUID
As always, if you have any questions, concerns, bug reports, suggestions or whatever, pop on to the Discord (link is in my signature) and give me a shout.