Commit Graph

155 Commits

Author SHA1 Message Date
bloodshot
be212c8761 bukkit: Fix player buckets not checking place or break. 2020-05-06 22:48:03 -04:00
bloodshot
0893621bb3 Fix invalid context when using group key in command. 2020-05-06 12:32:18 -04:00
bloodshot
7c9df62c44 Fix pvp user flag definition.
* Show active result for user flag gui.
* Improve layout for active result.
2020-05-06 02:09:00 -04:00
bloodshot
9116bf5722 Revert flag definition description fix.
If descriptions are showing wrong language. Wipe the 'flags.conf' to
regenerate from lang file.
2020-05-05 17:56:13 -04:00
bloodshot
1813bd06f4 Fix flag definition description translations.
* Add missing description from 'block-trampling'.
2020-05-05 17:46:27 -04:00
bloodshot
f801c065f3 Refactor Flag Definition System. Fixes #123
The flag definition system has had a major rehaul.
The following improvements have been made :
- Support for default values that can be applied on startup.
- All definitions have been moved to its own file 'flags.conf'.
- The 'enabled' setting now works as expected.
- GUI has been updated to show all relevant context/flag information.
- Admin definitions will now display the direct result of a definition.
  Note: The final active result will show on hover.
- User definitions will only display the result of the current claim.
  Note: User's can see extra info on hover.
  Note: If a user definition has been overridden, it won't be toggable.

* Add Context/Location improvements to GDDebug.
  - Users will now be able to expand location/context columns for more
  information.
* Add version check to use proper id for flag definitions.
* Move options from 'global.conf' to its own file 'options.conf'.
* Ignore suffocation for entity damage checks.
* Fix monster projectile's not checking monster source.
* Fix 'used_item' not showing up for buckets.
* Fix flag GUI sort when changing value.
* Fix town tag not showing properly on sponge. Fixes #201
* Change permission 'griefdefender.user.claim.command.flag.arg' to
  admin.
2020-05-05 15:55:32 -04:00
bloodshot
8391686828 Remove old meta check in cf command. Fixes #159 2020-05-02 13:12:46 -04:00
bloodshot
823fc88a21 Fix claim create limit checks not using type.
* Fix lava/water not forming cobblestone.
2020-05-01 19:53:47 -04:00
bloodshot
9221f7f50f Force chat record timeout on player logout. 2020-04-30 21:17:07 -04:00
bloodshot
d8e6acce55 Force chat command input timeout on logout.
Fixes #196
2020-04-30 21:11:51 -04:00
bloodshot
69b37bc95c Fix trust GUI not showing text without chat perm.
Fixes #178
2020-04-30 18:28:40 -04:00
bloodshot
051632eba6 Prevent TP if world is not loaded. Fixes #191 2020-04-30 18:26:35 -04:00
bloodshot
c3b6e3b6fb Fix wrong data passed in block form/spread events.
* Fix entity block damage being ignored in wilderness.
* Fix owners not being able to damage untamed animals.

Fixes #195
Fixes #174
Fixes #167
2020-04-30 12:57:33 -04:00
Jesse McKee
3dbce18e82
Allows claims to update on dynmap (#173)
Change from Sponge event listeners to Kyori listeners
2020-04-20 11:57:14 -04:00
kencinder
bfc5e08c38
Fix enderman-grief preset (#172) 2020-04-20 11:56:24 -04:00
bloodshot
6f96c90d9d Add support to clear claim names. Fixes #158 2020-04-09 17:59:46 -04:00
bloodshot
d043037d26 Fix NPE during pvp protection checks. 2020-04-09 15:57:49 -04:00
bloodshot
e79100c6f1 Ignore observers during block tracking. Fixes #164 2020-04-09 15:32:27 -04:00
bloodshot
17ac028d7c sponge: Add username underscore debug fix. 2020-04-09 15:28:11 -04:00
bloodshot
9df1cbc7f9 Fix username underscores in debug. Fixes #143 2020-04-09 15:22:11 -04:00
bloodshot
b69255db4b sponge: Fix accrued and initial block migration.
Fixes #156
2020-04-09 13:53:01 -04:00
kencinder
a0727494e1
Fixes for #154 (#162)
* Update GDFlagDefinitions
2020-04-08 01:35:47 -04:00
bloodshot
c1e5843482 Add perm check when changing claim type to town.
* sponge: Fix expiration cleanup interval not being passed to task.
2020-03-31 01:58:08 -04:00
Hutchy
80964978bc
Fixed NPE when checking username (#153) 2020-03-31 00:50:13 -04:00
Hutchy
189187fd25
Added dynmapProvider toggle (#144) 2020-03-27 17:33:13 -04:00
bloodshot
9434871d17 sponge: Fix claim getPlayers method. Fixes #150 2020-03-27 17:26:25 -04:00
Hutchy
ab9250d67e
Fixed null check running before Dynmap API fully loads (#137) 2020-03-11 12:37:55 -04:00
bloodmc
371aa8aa4d
Update README.md 2020-03-08 00:53:13 -05:00
Bryce Browner
258441bdcb
Update metadata versions, description strings, and README.md (#129) 2020-03-08 00:43:10 -05:00
Bryce Browner
21a30b7984
Fixed sponge claim migrator to find GP config directory via API (#130) 2020-03-08 00:32:09 -05:00
Hutchy
27c4b80954
Entity-Riding and safe teleports (#126)
* Fixed dismount being blocked

* Added safe teleports for flying and entity-riding

* Cancel move event on teleport
2020-03-07 23:42:59 -05:00
bloodshot
c1acd88667 Remove LP user cache to fix rollback issues. 2020-02-25 18:45:19 -05:00
bloodshot
c4543827eb Fix giveblocks command with negative amounts. 2020-02-16 15:35:30 -05:00
Vincent Schmandt
2ccd881bb6
Remove duplicate trustlist (#109)
Fixes #104
2020-02-14 21:11:15 -05:00
bloodshot
4bf2a66b4a sponge: Fix NPE during claim create. 2020-02-11 12:57:45 -05:00
bloodshot
71d45beaec Fix NPE during claim create. 2020-02-11 12:54:51 -05:00
bloodshot
db4e50ca9c Bump version for next development cycle. 2020-02-10 09:48:01 -05:00
bloodshot
a6e51f7c85 bukkit: Fix sticky pistons pulling blocks at edge.
Fixes #106
2020-02-10 09:26:59 -05:00
bloodshot
73d1e514f4 Fix user claim resize permission check. 2020-02-02 10:13:14 -05:00
bloodshot
4ccfda01f9 Fix subdivision context with commands. 2020-02-01 19:03:18 -05:00
bloodshot
44fc1c94e6 Fix claim option command adding wrong context.
The claim option command should no longer add a claim context when using
default or override contexts.

* Fix invalid value error when using 'undefined' to unset an option
using claim option commands.
2020-02-01 12:50:02 -05:00
bloodshot
99d0085d96 Fix NPE when checking player options on NPC. 2020-02-01 12:31:43 -05:00
bloodshot
84fdbd2de0 Fix claimlist command when passing target player.
* Add new permission 'griefdefender.user.claim.command.list.others' to
control whether a player can use target argument.
* Change permission 'griefdefender.user.claim.command.list' to
'griefdefender.user.claim.command.list.base' to account for others
addition.

bukkit:

* Remove call to Bukkit.getOfflinePlayer(name) as it would return a UUID
for any name passed to it.
2020-01-31 15:26:29 -05:00
bloodshot
a09628a05b Fix claim expand/contract up and down directions. 2020-01-31 11:31:03 -05:00
bloodshot
d4b99f5f74 Fix /playerinfo others check. 2020-01-31 11:12:26 -05:00
Hutchy
ef9324efd1 Improve command execute checks with args. Closes #101 2020-01-31 10:56:43 -05:00
bloodshot
352f8ceb32 Refactor permission removal on claim deletion.
* Fix meta not being removed on claim deletion.
2020-01-31 10:15:41 -05:00
bloodshot
9b821609f6 Fix playerdata migrator when using server context. 2020-01-27 19:19:36 -05:00
bloodshot
7a8183f061 bukkit: Fix MC 1.15 json for new API. 2020-01-27 15:06:18 -05:00
bloodshot
23e7daab72 Move playerdata file format to permissions as meta.
All file player data which stores accrued and bonus claim block totals
will now be stored with permissions as meta. This allows servers that
share permissions data across multiple servers to also provide the same
GD player data across servers if configured to do so.

In order to migrate the file player data, the following must be
configured :

1. Under the 'playerdata' section in 'global.conf', the
'context-storage-type' needs to be set to 'global', 'server', or
'world'. Read comment for more information.
2. Under the 'migrator' section in 'global.conf', the 'playerdata'
setting needs to be set to true. Make sure to read the comment carefully
as there are things to check before turning on the migrator.

As always, backup your permissions data before enabling the migrator.

Note: GD will no longer use the file player data. If you do not
migrate, all players will have 0 accrued and 0 bonus claim blocks.
Simply enable the migrator and follow the steps above to maintain the
current player data.
2020-01-25 01:07:02 -05:00