File tree Expand file tree Collapse file tree
type.island/src/main/java/net/swofty/type/island/events/traditional Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package net .swofty .type .island .events .traditional ;
2+
3+ import lombok .SneakyThrows ;
4+ import net .minestom .server .event .player .PlayerDisconnectEvent ;
5+ import net .swofty .type .generic .event .EventNodes ;
6+ import net .swofty .type .generic .event .HypixelEvent ;
7+ import net .swofty .type .generic .event .HypixelEventClass ;
8+ import net .swofty .type .skyblockgeneric .user .SkyBlockIsland ;
9+ import net .swofty .type .skyblockgeneric .user .SkyBlockPlayer ;
10+
11+ public class ActionIslandSave implements HypixelEventClass {
12+
13+ @ SneakyThrows
14+ @ HypixelEvent (node = EventNodes .PLAYER , requireDataLoaded = false )
15+ public void run (PlayerDisconnectEvent event ) {
16+ SkyBlockPlayer player = (SkyBlockPlayer ) event .getPlayer ();
17+ SkyBlockIsland island = player .getSkyBlockIsland ();
18+ if (island != null ) {
19+ island .runVacantCheck ();
20+ }
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments