Skip to content

Commit 7eddeef

Browse files
Merge pull request #580 from ArikSquad/feat/map-art
Hub Map Art
2 parents a9930a1 + b190aba commit 7eddeef

3 files changed

Lines changed: 791 additions & 1 deletion

File tree

type.hub/src/main/java/net/swofty/type/hub/TypeHubLoader.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
import net.swofty.type.hub.darkauction.DarkAuctionDisplay;
2727
import net.swofty.type.hub.runes.RuneEntityImpl;
2828
import net.swofty.type.hub.tab.HubServerModule;
29+
import net.swofty.type.hub.util.HubMapUtility;
2930
import net.swofty.type.skyblockgeneric.SkyBlockGenericLoader;
31+
import net.swofty.type.skyblockgeneric.darkauction.DarkAuctionHandler;
3032
import net.swofty.type.skyblockgeneric.entity.GlassDisplay;
3133
import net.swofty.type.skyblockgeneric.item.SkyBlockItem;
32-
import net.swofty.type.skyblockgeneric.darkauction.DarkAuctionHandler;
3334
import net.swofty.type.skyblockgeneric.museum.MuseumDisplays;
3435
import net.swofty.type.skyblockgeneric.tabmodules.AccountInformationModule;
3536
import net.swofty.type.skyblockgeneric.tabmodules.SkyBlockPlayersOnlineModule;
@@ -125,6 +126,9 @@ public void afterInitialize(MinecraftServer server) {
125126
}
126127
darkAuctionDisplay.update();
127128
});
129+
130+
// Place maps in the hub
131+
HubMapUtility.setMaps(HypixelConst.getInstanceContainer());
128132
}
129133

130134
@Override
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package net.swofty.type.hub.events;
2+
3+
import lombok.SneakyThrows;
4+
import net.minestom.server.event.player.PlayerSpawnEvent;
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.hub.util.HubMapUtility;
9+
import net.swofty.type.skyblockgeneric.user.SkyBlockPlayer;
10+
11+
public class ActionPlayerSpawn implements HypixelEventClass {
12+
13+
@SneakyThrows
14+
@HypixelEvent(node = EventNodes.PLAYER, requireDataLoaded = false, isAsync = true)
15+
public void run(PlayerSpawnEvent event) {
16+
final SkyBlockPlayer player = (SkyBlockPlayer) event.getPlayer();
17+
HubMapUtility.sendMapData(player);
18+
}
19+
}

0 commit comments

Comments
 (0)