Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
import net.swofty.type.hub.darkauction.DarkAuctionDisplay;
import net.swofty.type.hub.runes.RuneEntityImpl;
import net.swofty.type.hub.tab.HubServerModule;
import net.swofty.type.hub.util.HubMapUtility;
import net.swofty.type.skyblockgeneric.SkyBlockGenericLoader;
import net.swofty.type.skyblockgeneric.darkauction.DarkAuctionHandler;
import net.swofty.type.skyblockgeneric.entity.GlassDisplay;
import net.swofty.type.skyblockgeneric.item.SkyBlockItem;
import net.swofty.type.skyblockgeneric.darkauction.DarkAuctionHandler;
import net.swofty.type.skyblockgeneric.museum.MuseumDisplays;
import net.swofty.type.skyblockgeneric.tabmodules.AccountInformationModule;
import net.swofty.type.skyblockgeneric.tabmodules.SkyBlockPlayersOnlineModule;
Expand Down Expand Up @@ -125,6 +126,9 @@ public void afterInitialize(MinecraftServer server) {
}
darkAuctionDisplay.update();
});

// Place maps in the hub
HubMapUtility.setMaps(HypixelConst.getInstanceContainer());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package net.swofty.type.hub.events;

import lombok.SneakyThrows;
import net.minestom.server.event.player.PlayerSpawnEvent;
import net.swofty.type.generic.event.EventNodes;
import net.swofty.type.generic.event.HypixelEvent;
import net.swofty.type.generic.event.HypixelEventClass;
import net.swofty.type.hub.util.HubMapUtility;
import net.swofty.type.skyblockgeneric.user.SkyBlockPlayer;

public class ActionPlayerSpawn implements HypixelEventClass {

@SneakyThrows
@HypixelEvent(node = EventNodes.PLAYER, requireDataLoaded = false, isAsync = true)
public void run(PlayerSpawnEvent event) {
final SkyBlockPlayer player = (SkyBlockPlayer) event.getPlayer();
HubMapUtility.sendMapData(player);
}
}
Loading