[1.12.2-1.21.4] GriefDefender - claim plugin Grief Prevention Protection icon

[1.12.2-1.21.4] GriefDefender - claim plugin Grief Prevention Protection -----

Protection, Claims, GriefPrevention, Flags, Rent, Sell, Folia.



Language Update, Visual Update, WorldGuard Migrator, JDK11+ Support, Bug Fixes and More!
New Language System

IMPORTANT: The new language system is a major restructure of GD's messages and requires a manual step if you were running earlier versions. Before updating, move or delete the lang folder found under plugins/GriefDefender/lang. This will allow GD to regenerate a fresh lang file with latest changes. Failure to do this step will result in broken messages.

I spent a good amount of time refactoring all of GriefDefender's messages in order to support translations. Previously, many messages were not in the language files preventing them to be translated. With the latest changes, you now have the ability to modify any message that GriefDefender shows to a player including all commands and user interfaces.

Here is how the language file looked BEFORE my latest changes

https://gist.github.com/bloodmc/3833c0241ba432e1d7a11d1dfeaa2532

Here is the new language file with all remaining text in GriefDefender

https://gist.github.com/bloodmc/6e4bb53af108563bc0d7e0f4bd8d2166

As you can see the new file is much more readable and easier to translate.
Unfortunately, due to the massive restructuring of GriefDefender's message system, previous supported languages : de_DE, ru_RU, and zh_CN will need to be re-translated. Anyone who wants to assist with translating en_US to any other language can give me a PM to discuss.


Visual Update

In previous versions, there were various visual issues while creating claims and resizing. I am happy to say that all reported issues have been resolved. The bug fixes resolved are the following :

  • Fix start block visual disappearing when second block overlaps an existing claim.
  • Fix second block point on existing claim corner starting a resize.
  • Fix all active visuals disappearing when starting a resize.
  • Add config setting 'hide-wecui-drag-visuals-2d' to disable drag visuals while in 2D mode. (true by default)

The other issue was how the start create visual block would always be glowstone where in GriefPrevention, it would be diamond which players are used to. Not only is the visual block changed to diamond but I have went even further and moved ALL visual blocks used by GriefDefender to configs.

Here is the new visual section in config

Code (Text):
visual {
        # The visual accent block used for admin claims. (Default: minecraft:pumpkin)
        admin-accent-block="minecraft:pumpkin"
        # The visual corner block used for admin claims. (Default: minecraft:glowstone)
        admin-corner-block="minecraft:glowstone"
        # The visual filler block used for admin claims. (Default: minecraft:pumpkin)
        admin-filler-block="minecraft:pumpkin"
        # The visual accent block used for basic claims. (Default: minecraft:gold_block)
        basic-accent-block="minecraft:gold_block"
        # The visual corner block used for basic claims. (Default: minecraft:glowstone)
        basic-corner-block="minecraft:glowstone"
        # The visual filler block used for basic claims. (Default: minecraft:gold_block)
        basic-filler-block="minecraft:gold_block"
        # The visual block used during claim creation. (Default: minecraft:diamond_block)
        claim-create-block="minecraft:diamond_block"
        # The visual accent block used to visualize an error in a claim. (Default: minecraft:netherrack)
        error-accent-block="minecraft:netherrack"
        # The visual corner block used to visualize an error in a claim. (Default: minecraft:redstone_ore)
        error-corner-block="minecraft:redstone_ore"
        # The visual filler block used to visualize an error in a claim. (Default: minecraft:diamond_block)
        error-filler-block="minecraft:diamond_block"
        # Whether to hide the glowstone/gold block borders when using WECUI.
        hide-borders-when-using-wecui=false
        # Whether drag visuals should be shown while creating a claim in 2D mode.
        hide-wecui-drag-visuals-2d=true
        # The visual accent block used while in restore nature mode. (Default: minecraft:diamond_block)
        nature-accent-block="minecraft:diamond_block"
        # The visual corner block used while in restore nature mode. (Default: minecraft:diamond_block)
        nature-corner-block="minecraft:diamond_block"
        # The visual accent block used for subdivision claims. (Default: minecraft:white_wool or minecraft:wool for legacy versions)
        subdivision-accent-block="minecraft:white_wool"
        # The visual corner block used for subdivision claims. (Default: minecraft:iron_block)
        subdivision-corner-block="minecraft:iron_block"
        # The visual filler block used for subdivision claims. (Default: minecraft:white_wool or minecraft:wool for legacy versions)
        subdivision-filler-block="minecraft:white_wool"
        # The visual accent block used for town claims. (Default: minecraft:emerald_block)
        town-accent-block="minecraft:emerald_block"
        # The visual corner block used for town claims. (Default: minecraft:glowstone)
        town-corner-block="minecraft:glowstone"
        # The visual filler block used for town claims. (Default: minecraft:emerald_block)
        town-filler-block="minecraft:emerald_block"
    }
As you can see, the visual config will allow you to modify any visual block used in GriefDefender to a block of your liking. You can modify config settings on the fly by running the command /gdreload after change. This will reload ALL configuration.



Now for the rest of the changelog

  • Add WorldGuard migrator.
    Note: This does not support custom flags currently.
    Backup data including LuckPerms data before using.
    See https://github.com/bloodmc/GriefDefender/wiki/WorldGuard
  • Add JDK 11+ support.
  • Add command completion support.
  • Add support for all visual blocks to be changed in config.
  • Add support for migrating existing Sponge claim data.
  • Add missing CommandFlagReset registration.
  • Add missing contexts for global option lookups.
  • Add message cache for all messages that do not use parameters.
  • Add config setting 'hide-wecui-drag-visuals-2d' to disable drag visuals while in 2D mode. (true by default)
  • Fix accessor trust not affecting block collisions.
  • Fix accessor trust with non-inventory blocks.
  • Fix group trust.
  • Fix container trust
  • Fix start block visual disappearing when second block overlaps an existing claim.
  • Fix second block point on existing claim corner starting a resize.
  • Fix all active visuals disappearing when starting a resize.
  • Fix tools in config not supporting mod ids.
  • Fix lava placement bug.
  • Fix flag default tab permission.
  • Fix claim visuals not reverting properly.
  • Fix ClaimBlockTask distance world error.
  • Fix GD display version.
  • Fix public/admin usernames not displaying properly after restart.
  • Fix block collision debug spam.
  • Fix min/max claim size messages.
  • Fix /claiminfo displaying public and wilderness owner incorrectly.
  • Refactor option permission lookups.
  • Use non-async cache for PermissionHolder.
  • Ignore '_nextClaimID' file during GP Bukkit migration.
  • Improve item/block registry id lookups.
  • Update kyori text dependencies.
I hope you all enjoy this update as it took many long nights of work to get done. This will be the first major update of many =) Thanks for the support!
----------, Jul 31, 2019
Resource Information
Author:
----------
Total Downloads: 3,452
First Release: Jul 23, 2019
Last Update: Dec 5, 2024
Category: ---------------
All-Time Rating:
143 ratings
Find more info at www.griefdefender.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings