Commit Graph

17 Commits

Author SHA1 Message Date
bloodshot
760c9d93ff Don't save config if it fails to load. 2019-08-23 18:04:04 -04:00
bloodshot
6991d6395c Update for 1.2.0 release.
* Implement custom flag system to allow admins to create any flag they desire with contexts.
  See wiki for more info.
* Rewrite option and flag GUI's to be more user friendly.
* Refactor permission handling to support more permission plugins.
* Refactor permission lookups to use storage directly for better context handling
* Refactor option system to support generics.
* Add many new options.
See https://github.com/bloodmc/GriefDefenderAPI/blob/master/src/main/java/com/griefdefender/api/permission/option/Options.java

* Add new permission 'griefdefender.user.claim.option' to control what options user's can use
in their claims. Ex. If a user tries to use 'player-deny-fly', GD will check 'griefdefender.user.claim.option.player-deny-fly'
* Added the following permissions to allow admins to designate a player to manage options
'griefdefender.admin.claim.command.option.group.{type}'
'griefdefender.admin.claim.command.option.player.{type}'

* Add new claim restore setting 'auto-schematic-restore'.
This setting will allow servers to have newly created claims auto-generate a schematic.
When these claims expire, the auto-generated schematic will be used for restore.
Note: This setting is only designed for newly created worlds where players cannot build
in the wilderness. Use with caution and read comments carefully.

* Add new message setting 'enter-exit-chat-type'.
This setting is used to control the default chat type (Chat/ActionBar/Title) used when sending
enter/exit claim messages to players.
Note: This can be overridden by plugins.

* Add support for controlling raids. You can find the new toggle in /raid
* Add various GP command aliases to make it easier for users transitioning to GD
* Add confirmations for all claim delete commands.
* Add GPFlags migrator.
Note: When the GP Bukkit migrator is enabled, GD will automatically look for GPFlags data and migrate
with claim data.
* Add support for EntityCombustByBlockEvent, EntityCombustByEntityEvent, and EntityDamageByBlockEvent.
* Add EssentialsX hook to deny '/fly' command when 'player-deny-flight' is true for a user
* Add event result cache.
* Add contexts to hover in '/cf' command
* Add /givepet command
* Add confirmations to abandon and delete commands
* Add support for /sellblocks in economy mode
* Add new messages for economy mode

* Fix NPE during checkSizeLimits
* Fix interactions with custom inventories.
* Fix custom flags not showing up in '/cf' command.
* Fix interact-inventory denying action when interact-block-secondary is true
* Fix interact-inventory not checking entity ids.
* Fix shovel location being reset with insufficient blocks
* Fix GP Bukkit migrator not handling subdivisions properly.
* Fix 'block-break' flag being ignored in wilderness
* Fix invalid playerdata UUID files being loaded causing errors in console.
* Fix HashSet error in TaxApplyTask
* Fix 'command-execute' flag
* Fix PvP setting in /claiminfo.
* Fix claim overrides not checking default group.
* Fix various message issues
* Fix 'minecraft:air' showing up as used_item context.
* Fix EntityChangeBlockEvent user tracking.
* Fix abandonclaims not returning blocks to player.
* Fix players not being able to use pet inventories in other claims.
* Fix players being kicked when using gd callbacks.
* Fix '/cf' display issues
* Fix '/cf' mod id not being set properly with contexts
* Fix '/cf' item id context lookups
* Fix '/scb' command
* Fix '/gddebug' start/end time.
* Fix economy plugin detection
* Fix economy mode buy/sell not applying proper funds
* Fix ClaimBlocks task not depositing funds while in economy mode
* Prevent /buyblocks working in economy mode
* Remove economy mode check from /scb and /acb
* Rewrite option and flag GUI's to be more user friendly.
* Improve PermissionHolderCache
* Refactor permission handling to support more permission plugins.
* Refactor permission lookups to use storage directly for better context handling
Note: '/lp verbose' will no longer be able to track GD flag lookups.
* Increase cache to 30min
* Change gddebug paste site to griefdefender.github.io
2019-08-23 16:49:00 -04:00
bloodshot
a75d0410bf Update for 1.1.0 release.
* Add support for all visual blocks to be changed in config.
* Add config setting 'hide-wecui-drag-visuals-2d' to disable drag
visuals while in 2D mode (true by default)
* 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 some lang issues.
2019-08-02 11:14:49 -04:00
bloodshot
39af6e2430 Move all used text to language file to support translations.
* Add WorldGuard migrator.
Note: This does not support custom flags atm.
* Add message cache for all messages that do not use parameters.
* Refactor option permission lookups.
* Update kyori text dependencies.
* Minor cleanup.
2019-07-30 19:35:48 -04:00
bloodshot
7bc59aae71 Fix accessor trust with non-inventory blocks. 2019-07-29 11:49:01 -04:00
bloodshot
ebf5f6ad3e Add JDK 11+ support.
* Add missing contexts for global option lookups.
* Fix min/max claim size messages.
2019-07-28 17:37:34 -04:00
bloodshot
d23e070e68 Fix container trust.
* Fix public/admin usernames not displaying properly after restart.
* Fix block collision debug spam.
2019-07-28 12:41:26 -04:00
bloodshot
af5fade803 Fix /claiminfo displaying public and wilderness owner incorrectly. 2019-07-28 10:27:25 -04:00
bloodshot
347419a7fd Fix group trust.
* Fix claim type messages not being formatted properly.
2019-07-28 09:35:10 -04:00
bloodshot
e69449f40e Use non-async cache for PermissionHolder. 2019-07-28 01:30:23 -04:00
bloodshot
81e09725f2 Fix ClaimBlockTask distance world error. 2019-07-27 23:51:12 -04:00
bloodshot
542247e73d Improve item/block registry id lookups.
* Update en_US lang file.
* Update for latest API and adapter changes.
2019-07-27 20:19:02 -04:00
bloodshot
96c90fcd7b Add command completions.
* Fix accessor trust not affecting block collisions.
* Fix tools in config not supporting mod ids.
* Fix lava placement bug.
* Fix flag default tab permission.

Fixes #3, Fixes #5, Fixes #7, Fixes #10
2019-07-27 04:15:53 -04:00
bloodshot
ba39de90ab Refactor message system.
en_US lang will be delivered with assets and will no longer be generated.

The remaining translation files de_DE, ru_RU, and zh_CN have been
removed as they will need to be translated in the new format.

Thanks to Glare for the help making this happen. Closes #9
2019-07-27 01:37:06 -04:00
bloodshot
54ab8f4fbc Add missing CommandFlagReset registration.
* Add support for migrating existing Sponge claim data.
* Fix 'en_US' lang error on startup.
2019-07-24 23:18:46 -04:00
bloodshot
83b4596690 Fix claim visuals not reverting properly. Fixes #1
* Fix version.
* Ignore '_nextClaimID' file during GP Bukkit migration.
2019-07-24 00:07:41 -04:00
bloodshot
8a8d4dd08c Add bukkit source. 2019-07-23 23:31:17 -04:00