Skip to content

Commit

Permalink
add bungee
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-DT committed Aug 15, 2024
1 parent 54d5ff8 commit 4008058
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/nl/jandt/dktp/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.minestom.server.entity.GameMode;
import net.minestom.server.event.inventory.InventoryPreClickEvent;
import net.minestom.server.event.player.*;
import net.minestom.server.extras.bungee.BungeeCordProxy;
import net.minestom.server.instance.Instance;
import net.minestom.server.instance.LightingChunk;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -85,6 +86,8 @@ public static void main(String[] args) {
eventHandler.addListener(PlayerBlockPlaceEvent.class, e -> e.setCancelled(true));
eventHandler.addListener(PlayerPreEatEvent.class, e -> e.setCancelled(true));

BungeeCordProxy.enable();

MinecraftServer.getConnectionManager().setPlayerProvider(CustomPlayer::new);

server.start("0.0.0.0", 25565);
Expand Down

0 comments on commit 4008058

Please sign in to comment.