Commit Graph
22 Commits
Author SHA1 Message Date
AdamandGitHub 0e3a2e9791 Fix new depth not being set correctly (#1736) 2022-01-04 21:24:35 -08:00
AdamandGitHub 3562a238dd Clean up events for add-ons (#1706)
* Restructure and document events
2021-12-10 12:14:40 -08:00
YasinandGitHub ca11fd1695 API: add ClaimTransferEvent (#1641) 2021-12-05 10:42:32 -08:00
AdamandGitHub 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
Frank van der HeijdenandGitHub e95b7986e4 Add the involved entities in PreventPvPEvent (#1186) 2021-01-09 09:11:28 -08:00
AdamandGitHub 26124d3dee Finalize fields where possible (#1021) 2020-09-20 09:01:37 -07:00
SimonandGitHub 39f385e51c Add static getHandlerList to TrustChangedEvent (#1003) 2020-09-10 08:59:17 -07:00
Frank van der HeijdenandGitHub 1928b7ece7 Add ClaimExtendEvent (#947) 2020-09-07 05:14:26 -07:00
Frank van der HeijdenandGitHub 8bfc89d32e Instead of return a set containing null, return null (#948) 2020-08-07 15:40:39 -07:00
Frank van der HeijdenandGitHub abfb53b1cf Include inspectedBlock in ClaimInspectionEvent (#949) 2020-08-07 12:50:37 -07:00
Frank van der HeijdenandRoboMWM 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 HeijdenandGitHub fb53c1811e Add the Visualization instance to VisualizationEvent (#945) 2020-08-07 09:50:07 -07:00
Frank van der HeijdenandGitHub 2d3c3a3940 Add ClaimInspectionEvent (#946) 2020-08-07 08:45:13 -07:00
Frank van der HeijdenandGitHub 17fbbf5553 Add visualizingNearbyClaims flag to VisualizationEvent (#940) 2020-08-06 09:02:51 -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
Edson PassosandRoboMWM dda2a50c70 trust change event (#623) 2019-09-17 19:19:30 -07:00
Shane SchulteandRoboMWM 5ebbc999dd Add missing getHandlerList() in ClaimModifiedEvent (#387) 2018-10-07 15:25:52 -07:00
RoboMWM bce2eaf6c4 remove DeniedMessageEvent
Was already not being called a while ago
2018-09-26 11:35:27 -07:00
RoboMWM bda1c180ec add missing getHandlerList() in ClaimCreatedEvent 2018-09-22 23:32:49 -07:00
NarimmandRoboMWM 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
NarimmandRoboMWM b38e4aedb6 Refactor to maven standard layout (#270) 2018-06-11 23:11:37 -07:00