CometSkyBlock/plugin/src/main/java/com/alttd/cometskyblock
Stijn 4b2cadb419
Events (#4)
* Refactor island and island player classes to interfaces

Refactored the existing Island and IslandPlayer classes to interfaces and created the implementation classes, IslandImpl and IslandPlayerImpl.

* Add event handling for player island actions

Implemented new event classes for handling player activities related to islands. These include IslandPlayerJoinEvent, IslandPlayerLeaveEvent, IslandPlayerJoinIslandEvent, and IslandPlayerLeaveIslandEvent, facilitating better tracking and handling of player actions on islands for other plugins.

* Implement Island interfaces in IslandImpl and IslandPlayerImpl

Updated the IslandImpl and IslandPlayerImpl classes to implement the Island and IslandPlayer interfaces respectively.

* Refactor IslandPlayer Interface

Removed player() method and added islandOwner() method in the IslandPlayer interface. This change reflects way the IslandPlayerImpl currently works.

* Implement event triggers for island join/leave and server join/leave events

Added triggers for IslandPlayer events in the relevant island management methods. Also, modified IslandPlayerJoinEvent and IslandPlayerLeaveEvent to remove unnecessary references to Island-object.

* Reverting in events

* Replace interfaces with records in event parameters

The commit replaces the usage of interfaces Island and IslandPlayer with record classes in event parameters. It also adds methods to convert instances to respective records in Island and IslandPlayer classes. The interfaces are then removed as they are no longer needed.

* Replace interfaces with records in event parameters

The commit replaces the usage of interfaces Island and IslandPlayer with record classes in event parameters. It also adds methods to convert instances to respective records in Island and IslandPlayer classes. The interfaces are then removed as they are no longer needed.
2024-02-19 03:52:17 +01:00
..
challenges Add back button to GUI 2024-02-11 16:22:22 +01:00
commands Events (#4) 2024-02-19 03:52:17 +01:00
configuration Add IslandTop command with refresh cooldown (#1) 2024-02-18 14:22:17 +01:00
gui Fix playerheads in the GUI 2024-02-17 21:25:50 +01:00
island Events (#4) 2024-02-19 03:52:17 +01:00
listeners Events (#4) 2024-02-19 03:52:17 +01:00
managers Add island::broadcast as a way to announce information to all the island members and owner. 2024-02-17 23:18:12 +01:00
request Events (#4) 2024-02-19 03:52:17 +01:00
util Deprecate method 2024-02-11 16:16:03 +01:00
worldgenerator Set world seed to 4894934811986575177 2024-02-17 15:22:55 +01:00
CometSkyBlockPlugin.java Add IslandTop command with refresh cooldown (#1) 2024-02-18 14:22:17 +01:00