Commit Graph

118 Commits

Author SHA1 Message Date
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
bloodshot
6e45cd866a Add MC 1.15.2 support. 2020-01-23 00:12:36 -05:00
bloodshot
eb7cb16fe8 Remove leftover debug. 2020-01-16 20:54:51 -05:00
bloodshot
b8c3bfe820 Fix users accessing trust without permission. 2020-01-16 19:28:19 -05:00
bloodshot
8f4d761c76 Ignore entity damage caused by suffocation.
This can only occur when an entity is stuck in a wall so it should
always be allowed to happen.
2020-01-15 15:54:53 -05:00
bloodshot
cb69fab753 sponge: Fix NPE in pet owner check. 2020-01-15 12:37:45 -05:00
bloodshot
89e57c17ba Improve User Flag GUI.
User Flag GUI will no longer show values as 'undefined'. Instead, if no
claim value is found then the default value will be displayed instead.
This should be more friendly for end-users.

* Fix sponge /givepet command.
* Add 'protect-tamed-entities' claim config to allow protection for tamed entities such as horses. This new config setting is enabled by default.
2020-01-12 00:31:24 -05:00
bloodshot
95a7420d66 Avoid checking entity spawns during shutdown.
For whatever reason, during a shutdown a plugin may have custom data
that causes Sponge to trigger spawn events. To avoid issues, we ignore
all spawns during shutdown.
2020-01-09 20:12:58 -05:00
bloodshot
a170a5cef0 Move assets to common folder. 2020-01-09 19:53:00 -05:00
bloodshot
ebe0e49745 Fix claim context calculators. 2020-01-09 14:18:46 -05:00
bloodshot
eca403bf1d Fix wrong permission for claim reserve. 2020-01-09 11:40:02 -05:00
bloodshot
ab6db04328 Add chat recording feature for all command GUI's.
* Improve '/trustlist' command.
  Note: This command now supports adding and removing trusted users and
  groups.
* Improve '/claiminfo' command.
  Note: Trusted users will now link to the improved '/trustlist' command.
* Fix sizing for various GUI's. All GUI's should now fill screen.
2020-01-08 23:59:26 -05:00
bloodshot
a3bb1758a4 sponge: Fix mod registry. 2020-01-07 16:18:38 -05:00
bloodshot
9014c93633 Bump version to 1.2.5 2020-01-06 16:30:59 -05:00
bloodshot
d5213a3d64 Various enhancements.
* Add '/claimreserve' command for administrators to reserve claim names.
* Add support for untrusting specific type via all untrust commands.
* Add #pet context support.
* Hide teleport button if player does not have access to teleport.
* Fix pagination error when swapping between menu's.

Fixes #8
Fixes #25
Fixes #26
Fixes #91
Fixes #93
2020-01-06 16:24:24 -05:00
bloodshot
fcd6ed4e89 sponge: Add dynmap dependency. 2020-01-05 19:11:25 -05:00
bloodshot
3f3d9b573f sponge: Add Dynmap support. 2020-01-05 19:08:56 -05:00
bloodshot
0d870c2a70 Validate claim type permissions when using '/claimcreate'. 2020-01-03 09:40:16 -05:00
bloodshot
6169644109 Allow DynmapProvider to hide claim's by UUID. 2020-01-03 00:56:13 -05:00
bloodshot
c61b0fc1bc sponge: Add support for fake player interacts. 2020-01-02 21:39:06 -05:00
bloodshot
0629618946 Fix NPE using '/cf' command with no value. Fixes #86 2020-01-01 21:21:05 -05:00
bloodshot
1c8a2692d1 sponge: Add support for living entity mod id context groups.
Examples are as follows

  modid:#all - This would block all entities with modid.
  modid:#monster - This would block all monsters with modid.
  modid:#animal - This would block all animals with modid.

These can be used in either source or target contexts.
2020-01-01 21:20:07 -05:00
bloodshot
8743c5fe96 Don't add active contexts during getPermissionValue calls.
* Fix 'entity-spawn' flag lookups with wrong context.
2020-01-01 19:43:36 -05:00
bloodshot
cccb3c79d5 Add server context to getPermissionValue calls. 2020-01-01 16:34:01 -05:00
bloodshot
1ac3ad932e Fix getOptionValue without server context.
* Disable weather change message.
2019-12-31 23:49:45 -05:00
bloodshot
63005e72f8 More fixes on handling of server contexts. Fixes #88
* Server contexts will be automatically added if not found on set.
* Flag definitions will automatically add a server context if none is
found on deserialization.
* Option and Flag GUI will fallback to no server context if none is
found.
2019-12-31 22:42:15 -05:00
bloodshot
90d7db65cc Add server context support. Fixes #88
* Fix user permission check.
* Add check for max inspection distance.
* Add radius-inspect option to config.
* Add active contexts when checking permissions.
2019-12-31 20:14:33 -05:00
bloodshot
3c1a515e34 bukkit: Fix '/cfg' and '/cog' commands. 2019-12-31 16:15:16 -05:00
bloodshot
039087cac7 Deny teleport to non-trusted users if no permission.
* Allow teleports to non-trusted if claim is for sale and they have
permission to teleport.
2019-12-31 12:37:33 -05:00
bloodshot
0ec94bb2cb Add option default value for list type. 2019-12-31 04:19:04 -05:00
bloodshot
091106308b More improvements for Option GUI.
* Fix missing options from claim tab.
* Fix '/claimlist' showing claims to non-trusted users.
* Fix setOptionValue return result.
* Fix wrong version in 'plugin.yml'.
* Force local weather change to player on toggle.
* Add missing fr_FR translations.
2019-12-31 04:04:18 -05:00
bloodshot
dde267d997 Fix NPE when using flag command. 2019-12-30 18:50:20 -05:00
bloodshot
436f053fbe Finish implementing options for next major release.
* Fixed '/cfg' and '/cog' commands.
* Fixed 'create-mode' not working as intended.
* Fixed 'any' usage with flag commands.
* Fixed 'command-execute' usage.
* Fixed 'command-execute-pvp' usage.
* Fixed option removal/save with LP v5.
* Added context support for controlling user flag command usage.
* Added context support to option GUI.
* Added permission 'griefdefender.user.claim.command.flag.arg' which controls if a user can use flag command with arguments.
* Added permission 'griefdefender.user.claim.command.flag.gui' which controls if a user can use flag GUI.
* Added new group context '#all' which can be used to represent all sources or targets.
* Removed 'max-claim-inspection-distance' from config as it is now controlled by 'radius-inspect' option.
* Removed 'combat-timeout' from config as it is now controlled by 'pvp-combat-timeout' option.
* Implemented the folloing new options
  'player-command-enter' - Handles executing commands when a player enters a claim.
  'player-command-exit' - Handles executing commands when a player exits a claim.
   Note: both command options support the following placeholders : %player%, %owner%, %uuid%, %world%, %server%, %location%

  'player-gamemode' - Used to determine the gamemode of a player when entering a claim.
  'player-deny-godmode' - Used to determine if a player can be in godmode when entering a claim.
  'player-walk-speed' - Controls the player walk speed when entering a claim.
  'player-weather' - Controls player local weather when entering a claim.
  'pvp-combat-command' - Used to determine if a player can use commands during PvP combat.
  'pvp-combat-teleport' - Used to determine if a player can teleport during PvP combat.
  'pvp-combat-timeout' - Used to determine how many seconds PvP combat is considered to continue after the most recent damage.
  'radius-inspect' - Controls the radius in blocks to search within when inspecting for claims.
  'spawn-limit' - Used to control the spawn limit for a specific set of entities in a claim.
* Only save once when toggling flag definitions that include multiple definitions.
2019-12-30 18:27:37 -05:00
bloodshot
ff27faa69c Fix command overrides. Fixes #89 2019-12-28 17:39:27 -05:00
bloodshot
9bd3436a55 Fix gradle jar output. 2019-12-28 17:26:37 -05:00
bloodshot
501c303775 sponge: Fix permission lookups for 'any'.
* Fix '/cf' command when using modid:any.
* Improve sponge playerdata migration.
2019-12-28 15:36:11 -05:00
bloodshot
69cb3c6728 Fix debug filter with usernames. 2019-12-28 12:55:22 -05:00
bloodshot
217d5aecb8 Improve PvP checks. 2019-12-28 12:45:25 -05:00