Skip to content

HuskTowns 2.5 - Town flag customization, fixes

Compare
Choose a tag to compare
@WiIIiam278 WiIIiam278 released this 25 Jun 19:11
· 210 commits to master since this release
3b92ad7

HuskTowns 2.5 adds the ability to customize the town flags through a new flags.yml file and fixes a few bugs.

  • Add support for customizing town flags (#273)
    • A new flags.yml config file will be generated on startup
    • Flags defined by ID in this file can then be mapped to default values for each claim type in your rules.yml file.
    • Note that existing towns will not assume new defaults added to the rule presets later on (and flags in this file will only be displayed in /town rules if a default has been applied); provided users have permission, users must apply the flags manually to their town with /town rules <claim_type> <name> <true/false>
    • Servers should have the same flag set configured -- but if there's a mismatch, missing flags will simply go ignored and not be displayed in /town rules.
    • You can define display names for flags by adding them to your locales file
  • Fixed an issue where monsters could not be killed by town members due to the wrong persistence check being performed (#272)
  • Added PLAYER_INTERACT_BLOCK into the set of allowed actions for public_farm_access to fix an issue where placing crops would be cancelled by the surface player interact check
  • Fixed an issue where interacting with an item in the off hand would display an error if the operation were to be denied instead of this happening when interacting with the main hand
  • Fixed an issue that may occur on some paper forks where dependencies would not correctly load due to an incorrect config default on some paper 1.19.4 implementations (note this may not fix compatibility with Purpur 1.19.4, but has been done anyway)
  • API: New methods for getting and registering flags to the flag map have been added. Old Flag.NAME enumerations have been deprecated, though it's not anticipated that this introduces any breaking API changes.

To update, just drag+drop, as there's no config changes—you should see a new rules.yml config appear, which you can edit if you wish. Once again, please use the latest build of Paper if you're still on 1.19.4 and note that some forks will not be compatible due to paper-plugin yaml schema changes. All other versions are unaffected.

📋 HuskTowns is a premium plugin; binaries are not distributed on GitHub. Please purchase the resource from Spigot, Polymart or Craftaro.