Commit Graph

52 Commits

Author SHA1 Message Date
akastijn 501de8128d Replace sendMiniMessage with sendRichMessage update to 1.21.10, fixed claimblock prices 2026-04-26 05:21:15 +02:00
Len 9a687ec099 Add abandonpet command. 2024-08-03 14:32:34 +02:00
Len 98a0a06081 Add abandonsublevelclaim command. 2024-08-03 14:24:39 +02:00
Teriuihi 6cd0d56e9b Added support for uuids in claimslist command 2023-01-12 17:02:30 +01:00
Len 5577636b94 Fix temp claims not expiring 2022-05-01 19:34:39 +02:00
Len 61823e98fb Do not allow to claim near admin claims 2022-05-01 18:31:27 +02:00
Len e2dccaad95 Check if target has claimblocks required when transfering claims 2022-04-27 10:47:24 +02:00
destro174 396b7d57fc Load custom messages from config 2022-04-22 18:52:32 +02:00
destro174 95eb7f3e6d fix 2022-04-15 09:47:14 +02:00
destro174 c82e5c586d Prevent claiming outside of the worldborder 2022-04-15 09:37:58 +02:00
destro174 125e3b66db Don't require nearbytrust for subclaims 2022-03-19 21:03:54 +01:00
destro174 7d1fe8bf2f remove bloat 2022-02-25 23:51:32 +01:00
destro174 0f8b6b5a0d mostly claimnearby stuff? 2022-02-24 18:58:38 +01:00
destro174 ed3188b37a Remove unused code 2022-02-19 21:06:41 +01:00
destro174 2c8121dd2c remove ClaimsMode.Creative 2022-02-19 20:40:52 +01:00
destro174 537803028b remove sieges 2022-02-19 20:07:28 +01:00
destro174 1ccf191596 remove unused stuff 2022-02-19 19:33:50 +01:00
destro174 d8f64cd09a protected -> public 2022-02-15 21:14:05 +01:00
destro174 8cdccefdc7 Auto claim the end island 2022-02-14 09:56:32 +01:00
Adam 3562a238dd
Clean up events for add-ons (#1706)
* Restructure and document events
2021-12-10 12:14:40 -08:00
Kamil Trysiński 137a951448
Fix WorldGuard integration (#1630) 2021-12-10 12:00:34 -08:00
Adam c64baf0baa
Sanitize claim depth on extend/resize (#1598)
Closes #312
2021-12-05 10:50:15 -08:00
Yasin ca11fd1695
API: add ClaimTransferEvent (#1641) 2021-12-05 10:42:32 -08:00
Adam 219cf6edd1
Fix max depth below world height (#1502) 2021-08-02 08:32:23 -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
Adam f01798fb46
Refactor pistons to use new bounding box (#1139) 2020-12-09 07:59:35 -08:00
Adam 0ceb6f8e21
Fix subclaims being added to chunk claims map when resized (#1082) 2020-10-29 09:23:33 -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
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 1928b7ece7
Add ClaimExtendEvent (#947) 2020-09-07 05:14:26 -07:00
Adam 81cfc8f2d9
Confirm /abandonallclaims (#1000) 2020-09-07 04:19:09 -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
Izmoqwy 093cbb0e93
Add config to limit bonus claim blocks (on purchase) (#786) 2020-05-03 17:59:27 -07:00
Adam d326f106d6 Ensure subclaim boundaries are inside parent (#590)
Fixes GHSA-7mmh-4c9r-pf6v
2019-08-23 12:32:59 -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 832ec7ed86 make NoTransferException public and unchecked 2019-03-17 21:13:44 -07:00
Sigurdur 50d0376525 Assign claim ID to new claims before calling ClaimCreatedEvent (#465) 2019-03-02 22:42:04 -05:00
Sigurdur 59c9157edc Update chunk claim map on resize (#464) 2019-03-02 15:15:18 -05:00
Sigurdur 904c304666 Mutate existing claim instead of creating new claim on resize (#461) 2019-01-26 10:54:35 -08:00
112madgamer 1a7a6eca42 Siege cooldown (#418) closes #415 2018-11-19 00:03:24 -08:00
RoboMWM c04666b43d Fix NPE that occurs when repairing nextClaimID value
Very likely I was going to refactor this class, but then stopped since
it's abstract and thus can't have any constructor... but apparently I
forgot to revert that line.

Closes #377
2018-09-24 01:51:47 -07:00
RoboMWM e17403feb2 Perform sanity check on nextClaimID, closes #207 2018-08-17 10:15:35 -07:00
Narimm 643ad8a7f7 Add ClaimCreatedEvent and ClaimModifiedEvent (#344)
1. Claim creation event... this is fired once all the claim creation checks have been passed.  It can be cancelled. It contains the claim and the creating player
2. Claim modification event - this is fired as the claim is modified - it cannot be cancelled. It contains the claim and the modifier...which can be null.

Use Case:
This could be used so other plugins can hook gp and perform an action if a claim is created or changed. Something as simple as logging claim creations/modifications and deletions.
2018-08-13 07:09:05 -07:00