Commit Graph

46 Commits

Author SHA1 Message Date
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
c61b0fc1bc sponge: Add support for fake player interacts. 2020-01-02 21:39:06 -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
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
bloodshot
772a8d077e Update LuckPermsProvider to v5. 2019-12-28 12:35:03 -05:00
John
cad082bdcd Improve de_DE translations (#87) 2019-12-26 19:38:41 -05:00
YoSuboDeToh
c74f578692 Add es_ES language support. 2019-12-24 11:14:41 -05:00
bloodshot
ff82031cdd sponge: Fix claim create triggering twice in claim mode.
* Fix some issues with visuals while claiming.
2019-12-24 00:12:42 -05:00
bloodshot
8e6d2671f3 sponge: Bump version to 1.2.3 2019-12-23 23:27:52 -05:00
bloodshot
f1479a505f sponge: Fix block place handler not checking all transactions. 2019-12-23 22:56:58 -05:00
bloodshot
eec002a377 Fix Flag GUI toggle. Fixes #84 2019-12-21 20:26:34 -05:00
bloodshot
7aeb9f1333 Fix wrong encoding in de_DE lang file. 2019-12-20 22:46:50 -05:00
bloodshot
aff8af0efa Fix sponge entity NPE during teleport. 2019-12-20 15:41:37 -05:00
bloodshot
82c5131f01 Update API for sponge. 2019-12-19 18:21:03 -05:00
bloodshot
75fbcebb58 Implement FlagDefinition API. 2019-12-19 17:43:16 -05:00
bloodshot
3f8156836e Fix NPE in entity move handler. 2019-12-19 13:25:25 -05:00
bloodshot
1f1a1e655e Fix command-execute args usage. 2019-12-18 21:32:50 -05:00
bloodshot
d81c21955c Fix command-execute flag. 2019-12-18 20:38:17 -05:00
DrWurzeli
d22fdc0196 Add de_DE language support. 2019-12-08 17:29:17 -05:00
bloodshot
dea4476ee4 Add GP sponge option migration support. 2019-12-03 01:42:29 -05:00
bloodshot
3a8de49049 Fix world permission checks.
* Ignore item frames during entity-chunk-spawn checks.
2019-12-02 22:18:04 -05:00
bloodshot
4433d9c2f3 Force save after claim migration. 2019-12-02 16:11:12 -05:00
bloodshot
a51c954c78 Fix sponge context group permission check.
* Fix GDEntityType getEnumCreatureType.
2019-12-02 00:28:50 -05:00
bloodshot
6bd5bcf2c4 Fix sponge default user permission migration.
Sponge default user permission data will now be migrated to LP's default
group.

* Fix NPE during entity move.
2019-12-01 18:35:07 -05:00
bloodshot
29824075e2 Fix sponge schematics not loading at startup. 2019-12-01 00:43:25 -05:00
bloodshot
ef3659b33e Fix schematics. 2019-11-30 23:40:32 -05:00
bloodshot
3f430645e4 Fix investigation tool.
* Fix NPE during entity move.
2019-11-30 21:01:59 -05:00
bloodshot
557f09a4de Add sponge support. 2019-11-24 17:01:05 -05:00