Commit Graph

27 Commits

Author SHA1 Message Date
Logan Barrett e6ce386bcf
resolve NPE when calling Claim.allowEdit (#1580) 2021-09-12 10:58:15 -07:00
MrPowerGamerBR 7723d10196
Fix NPE when using allowBuild in a claim that the player has permission to build (#1500) 2021-07-31 10:15:15 -07:00
Adam 528f9f9777
Update to 1.17 (#1448)
* Update to include 1.17 materials and tags

* Use world height for claim max height

* Account for worlds with min height < 0

Fix restore not working under y 0
Change default max claim depth to integer min value
Fix creative claims always going to 0, not world min height

* Update material listings to include new blocks
  * Fixes a few missed cases from previous versions
* Replaced claim to bounding box bandaid for world max height increase with actual world limit
* Account for worlds with min height less than zero
  * New default maximum depth is now integer min value (-2147483648) to not restrict users no matter how weirdly they set up worlds
  * Creative claims always extend to world min height, not 0
  * RestoreNature restores to a max depth of world min height instead of 0

Closes #1309 
Closes #1431
2021-07-10 12:31:12 -07:00
Adam 6727fa76e3
Fix deprecated claim API (#1439)
Closes #1438
2021-07-04 11:38:39 -07:00
Adam bbb1e5d58c
Add ClaimPermissionCheckEvent (#1006)
Also contains a bit of refactoring on internal logic. Modifies (secondary) siege mechanics.

* Un-couple siege from core claim functions

* UUID overload, documentation, naming clarity

* Add internal special message override support

* Fix permission calculation issues in subclaims

* Migrate egg handling to new methods

* Use suppliers for denial message

In many use cases addons don't care why a denial occurred, only that it did. On-demand calculation is vastly preferable to reduce server impact.
2021-06-24 01:28:59 -07:00
Adam e6d608bcb9
Fix ignoring height (#1260) 2021-04-07 19:33:44 -07:00
RoboMWM 6ac16665b3 Add cocoa to farm blocks
closes #839
2021-01-19 17:29:23 -08:00
Adam d126b90ce9
Fix rounding error on partial negative coordinates (#1147) 2020-12-11 09:18:03 -08:00
Adam 03ab872f6d
Fix reversed conditional (#1138) 2020-12-09 08:02:46 -08:00
Adam d5c5e4983e
Refactor boundary checks into unified bounding box (#1126) 2020-12-09 00:28:22 -08:00
Frank van der Heijden af25b289f4
Fix piston checks in subclaims (#1056) 2020-10-11 21:21:43 -07:00
Adam 1237276823
Use EnumSet for Material (#1038) 2020-10-02 17:35:45 -07:00
Adam bf214afe2e
Use enhanced for loop where applicable (#1016) 2020-09-19 14:14:11 -07:00
Adam 47cd376610
Remove explicit type declaration (#1015) 2020-09-17 08:25:38 -07:00
Adam 88dd68505a
Use constant for farming block list (#1014) 2020-09-17 08:22:57 -07:00
Adam 39e9d48add
Improve overlap test and amend PR #934 (#999) 2020-09-07 04:15:24 -07:00
RoboMWM 4035f40c62
Revert "Refactor overlap check (#934)" (#995)
This reverts commit 70b6574fe1.
2020-09-04 10:56:37 -07:00
Adam 70b6574fe1
Refactor overlap check (#934) 2020-08-31 08:06:11 -07:00
Frank van der Heijden 4b3852d624 Implement Cancellable in ClaimModifiedEvent (#942)
- If canceled, GP stops processing the resize command (no error printed or potential overlapping claim displayed)
2020-08-07 10:27:49 -07:00
Frank van der Heijden ee1a5c567b
DataStore#getChunkHash is publicly accessible (#943) 2020-08-06 08:27:24 -07:00
RoboMWM ac5a666b8d remove all suppressions of deprecation warnings 2020-06-20 12:28:25 -07:00
RoboMWM 732fa2e015 these changes are sometimes not getting exported or something 2020-06-08 23:15:52 -07:00
RoboMWM 40f554d386 reformat code
- Lots of tabs to spaces going on
- That's a lot of changes!

#63
2020-06-08 21:57:55 -07:00
Adam 28b928f4b2
Add API allowing addons to check trust levels for offline players (#801)
* Expose explicit ClaimPermission levels

* Add getPermission to allow addons to check other trust
2020-05-03 17:52:24 -07:00
112madgamer f4e09e5ed3 Fix material names for /containertrust (#407) 2018-11-05 20:12:52 -08:00
zedwick 19c0f3220f The 1.13 PR (#320)
- Removes all code and config pertaining to the "mods" config section

- RestoreNature has issues in oceans
2018-08-13 06:53:14 -07:00
Narimm b38e4aedb6 Refactor to maven standard layout (#270) 2018-06-11 23:11:37 -07:00