Commit Graph

58 Commits

Author SHA1 Message Date
destro174 fdfea84c45 Remove some bloat 2022-02-14 09:43:00 +01:00
Adam a7cb4a0c78
Don't fire EntityDamageByEntityEvent when renaming (#1680)
Fixes incompatibility with mcMMO's health bar displays
2021-12-05 11:07:21 -08:00
drbot7 4b0998dbb7
Protect rooted_dirt (#1541)
Closes #1535
2021-12-05 10:59:09 -08:00
drbot7 134729167b
Protect candles from being extinguished (#1526) 2021-08-19 08:51:35 -07:00
multirp e8c5b37119
ink/glow ink sacs on signs require build permission (#1508) 2021-08-08 11:29:18 -07:00
drbot7 6382a9fee4
Config option on silencing ban messages (#1480)
Enabled by default as per previous behavior.
2021-07-21 10:12:24 -07:00
drbot7 16036bdc19
Deny pumpkin carving in untrusted claims (#1473)
Fixes #1352
2021-07-17 08:58:21 -07:00
drbot7 fadc1aab30
protect glow berries (#1459)
Addresses comment in https://github.com/TechFortress/GriefPrevention/issues/1352#issuecomment-877190767
2021-07-16 09:21:02 -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
drbot7 fbf4c7c45b
Protect glow item frames (#1413)
Consistent with regular item frames
2021-06-19 09:52:16 -07:00
Adam cac5aa04f1
Prevent nametag usage unless player can kill target (#1337)
Addresses discussion #1333
2021-05-29 12:36:02 -07:00
YanisBft 5a70d694e7
Prevent egg hatching in claims without container permission (#1128) 2021-01-13 08:17:38 -08:00
Erik Eide 329bfb54de
Add waterlogging check for buckets (#1156)
Co-authored-by: Adam <Jikoo.Games@gmail.com>
2020-12-16 12:32:43 -08:00
Adam 1edd0a921e
Fix resizing 1-wide claims (#1148) 2020-12-12 10:33:29 -08:00
Adam e74ad1f94b
revert to using static calls instead of instance (#1017) 2020-12-09 00:47:39 -08:00
FreeMonoid 03074bf934
Make placing and breaking boats use containertrust (#1065)
Consistent with minecarts
2020-10-23 19:36:47 -07:00
Adam 1237276823
Use EnumSet for Material (#1038) 2020-10-02 17:35:45 -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
Frank van der Heijden abfb53b1cf
Include inspectedBlock in ClaimInspectionEvent (#949) 2020-08-07 12:50:37 -07:00
Frank van der Heijden fb53c1811e
Add the Visualization instance to VisualizationEvent (#945) 2020-08-07 09:50:07 -07:00
Frank van der Heijden 2d3c3a3940
Add ClaimInspectionEvent (#946) 2020-08-07 08:45:13 -07:00
Frank van der Heijden 17fbbf5553
Add visualizingNearbyClaims flag to VisualizationEvent (#940) 2020-08-06 09:02:51 -07:00
Adam 89d362a747
Use fence gate tag (#921) 2020-07-30 17:48:40 -07:00
Eli, wyldt- b6434298fc
support raid trigger prevention (#913) 2020-07-28 21:27:20 -07:00
Adam 085f335559
Use tags instead of manually-maintained material lists (#905) 2020-07-25 11:47:08 -07:00
RoboMWM 7999da4e81 exclude suspicious bucket placements from being logged in console 2020-07-04 09:58:29 -07:00
Alen Budimir 909b81aea5
Add redstonewire to accesstrust (#868) 2020-07-03 11:03:40 -07:00
Isabel Lomas a6a7c237cf
1.16 materials update (#866)
- fixes #865 
- add new spawn egg names
2020-07-02 20:24:18 -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
RoboMWM 7e0f936502 skip plugins that aren't JavaPlugins
Fixes #707
2020-02-01 22:11:45 -08:00
RoboMWM d7dd5a8e97 add more new 1.14, 1.15 blocks to containertrust
Closes #642
Closes #698
2020-01-25 20:59:24 -08:00
coralpapa 9048811454 Fix unignorable players from being ignored (#643) 2019-10-15 16:18:06 -07:00
RoboMWM e246807d8f fix typo which caused rightclicking the air with dyes to print an NPE
Fixes #574

Was introduced in
a9a7fe41a0 (diff-b15ac36752c3cec705105f3a5f802139R1881)
2019-08-31 11:48:45 -07:00
RoboMWM 73325a3f8f add some debugging for #574 2019-08-11 15:29:53 -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 6ddcaec112 protect berry bushes in claims from being harvested without container trust
Closes #548
2019-07-29 21:14:20 -07:00
RoboMWM a9a7fe41a0 disallow use of dyes in claims
Dyes can be used to change sign colors according to cities7

- Also use 1.14 signs
2019-06-09 13:54:54 -07:00
RoboMWM 59d9e6f556 Remove travel agent and related config option
- Removed Claims.PortalGenerationRequiresPermission

Closes #534
2019-06-09 10:33:38 -07:00
RoboMWM 9b52a0d133 Prevent unauthorized users from taking water from waterlogged blocks
Thanks @jikoo for the snippet

Closes #473 , closes #477
2019-03-02 12:12:18 -08:00
Apecengo 9ff369fd62 Exempt creative/spectator gamemode from environmental PvP checks (#446)
Also performs visibility check.
2019-01-10 08:11:45 -08:00
112madgamer fc7e940cbe Mitigate restorenature hanging (#411)
Certain parts are disabled.
2018-11-22 01:12:11 -08:00
112madgamer 3e1e058001 Allow Donkey and llama protection to be disabled (#406) 2018-11-03 01:38:45 -07:00
112madgamer e2aae1d0f3 Update for new POTTED materials (#403)
Fixes #386
2018-11-02 08:42:35 -07:00
RoboMWM 4a9d62c78f also check for metadata in anonymous task in plaayerjoinevent 2018-09-22 13:26:22 -07:00