Commit Graph

42 Commits

Author SHA1 Message Date
Adam d930e45440
Fix falling block and vehicle block change handling (#1424) 2021-07-16 09:22: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 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
RoboMWM 83e89b3772 remove unused lightning strike event handler 2021-01-19 17:29:53 -08:00
Frank van der Heijden c014901b7a
Prevent doublechests forming on claim boundary (#1054) 2020-12-10 11:13:44 -08:00
Adam f01798fb46
Refactor pistons to use new bounding box (#1139) 2020-12-09 07:59:35 -08:00
Adam d5c5e4983e
Refactor boundary checks into unified bounding box (#1126) 2020-12-09 00:28:22 -08:00
Adam 1f98733f3b
Fix claims in other worlds preventing piston movement with EVERYWHERE_SIMPLE(#1099) 2020-11-15 06:15:00 -08:00
Adam 8c7abf9fd5
Piston should not be included in moved block bounding box (#1088) 2020-11-05 09:04:27 -08:00
Adam e1086c3206
Fix incorrect retract check and everywhere modes checking subclaim (#1083)
* Retraction checked block behind piston when no blocks were moved
* Everywhere modes are supposed to ignore subclaims, so piston claim should not be a subclaim
2020-10-29 09:52:43 -07:00
Frank van der Heijden af25b289f4
Fix piston checks in subclaims (#1056) 2020-10-11 21:21:43 -07:00
jacob1 a34a0fecab
Fix piston retraction checking one block further than it needs to (#1036) 2020-10-11 21:15:54 -07:00
Frank van der Heijden e4a666f8be
Make sound of piston explosions toggleable (#996) 2020-10-11 20:59:17 -07:00
Adam 1237276823
Use EnumSet for Material (#1038) 2020-10-02 17:35:45 -07:00
Adam 74700dc3de
Add option to enforce a minimum claim size for automatically-generated claims (#1037) 2020-10-02 09:02:37 -07:00
DrBot7 6e055c90c3
Stop boats from breaking item frames in claims (#1029) 2020-09-26 12:54:19 -07:00
Adam 9622eea434
StringBuilder#append should not contain concatenation (#1020) 2020-09-20 09:06:53 -07:00
Adam 26124d3dee
Finalize fields where possible (#1021) 2020-09-20 09:01:37 -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 b5542e24b1
Fix NPE in admin claims (#1011) 2020-09-14 21:05:51 -07:00
Nick L 2048a9f31d
Support plugins that use SignChangeEvent to check sign editing permissions (#951) 2020-09-14 16:48:34 -07:00
Adam 581e8881e9
Add new, efficient options for handling pistons (#933) 2020-09-14 16:45:08 -07:00
Adam a3d0aecaf0
Improve block ignition handling (#931)
* Improve arrow ignition handling

* Allow fireball/arrow ignition from same claim

* Allow fires to be started by dispensers in same claim
2020-08-07 10:20:35 -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
RoboMWM 110b068ac1 Set blockdata when removing chorus fruit
Closes #799
2020-05-28 21:25:34 -07:00
Adam 64e101c3bf
Use BlockData Dispenser (#818) 2020-05-15 21:11:43 -07:00
RoboMWM 8760ad69bc change priority of some denial events to LOWEST
Thanks to OliPulse in IRC, we discovered some events at the wrong
priority in GP.
2020-02-02 13:30:56 -08:00
Bobcat00 85205e9b6f Add config option to ignore piston movements (#671) 2019-12-15 15:15:50 -08:00
Shane Bee cc03fdcba8 Fix lectern permissions for spigot servers
- Fixes an issue with players with correct trust level not able to put a book in a lectern when the server is running Spigot
- This "fix" isn't needed for Paper...

Closes #613
2019-09-08 11:50:28 -07:00
RoboMWM 6f35aabf2e add ignoreCancelled = true 2019-08-31 21:07:48 -07:00
RoboMWM c02337ada9 Roundabout fix for #594
https://www.spigotmc.org/threads/spigotapi-missing.381491/#post-3460194

Closes #594
2019-08-31 16:53:41 -07:00
coralpapa 6274cb7536 Allow hoppers to collect unlocked drops (#583)
Closes #576
2019-08-11 11:49:15 -07:00
Shane Bee 7c7e98e5e6 Modify lectern permissions (#579)
- /accesstrust for viewing (with a config to disable permission requirement)
- /containertrust for modifying

Closes #537

Co-authored-by: Zedadias Wick <zedwick@gmail.com>
2019-08-10 08:44:42 -07:00
RoboMWM c4a0012959 Block lightning from starting fires in claims
Should close #532
2019-06-14 00:49:26 -07:00
Apecengo 9ff369fd62 Exempt creative/spectator gamemode from environmental PvP checks (#446)
Also performs visibility check.
2019-01-10 08:11:45 -08:00
Shane Bee f96d62aa05 Config to allow fire spread and damage within claims (#445) 2019-01-09 15:50:21 -08:00
112madgamer 3a9b253401 Block fire, damage from lightning caused by trident channeling enchant (#417) 2018-11-22 01:06:51 -08:00
ArchdukeLiamus 393aa27329 fire/lava near players config can be changed in non-PvP worlds (#371)
Also allows this feature to be disabled in worlds where PvP rules aren't applied.
2018-09-15 15:12:41 -07: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