Skip to content

Commit

Permalink
feat: minecraft 1.20.4 support
Browse files Browse the repository at this point in the history
- bumped major version (1.2.1 -> 1.3)
- updated minimessage (4.12.0 -> 4.16.0)
- added slf4j simple implementation
  • Loading branch information
CodeTheDev committed Feb 22, 2024
1 parent c49b745 commit 0cb94ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "dev.codeerror"
version = "1.2.1"
version = "1.3"

apply(plugin = "com.github.johnrengelman.shadow")

Expand All @@ -16,8 +16,9 @@ repositories {
}

dependencies {
implementation("com.github.Minestom:Minestom:aebf72de90")
implementation("net.kyori:adventure-text-minimessage:4.12.0")
implementation("net.minestom:minestom-snapshots:7320437640")
implementation("net.kyori:adventure-text-minimessage:4.16.0")
implementation("org.slf4j:slf4j-simple:2.0.12")
}

tasks.withType<ShadowJar> {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/dev/codeerror/overflow/OverflowLimbo.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import net.minestom.server.extras.velocity.VelocityProxy;
import net.minestom.server.instance.InstanceContainer;
import net.minestom.server.instance.block.Block;
import net.minestom.server.network.packet.server.play.PlayerInfoPacket;
import net.minestom.server.network.packet.server.play.PlayerInfoUpdatePacket;
import net.minestom.server.ping.ResponseData;
import net.minestom.server.utils.NamespaceID;
import net.minestom.server.world.DimensionType;
Expand Down Expand Up @@ -106,7 +106,7 @@ public static void main(String[] args) {
logger.info(player.getUsername() + " [" + player.getPlayerConnection().getRemoteAddress() + "] connected.");
}
});
events.addListener(PlayerLoginEvent.class, event -> {
events.addListener(AsyncPlayerConfigurationEvent.class, event -> {
Player player = event.getPlayer();
player.setAutoViewable(false);
player.setRespawnPoint(spawnPos);
Expand All @@ -121,7 +121,7 @@ public static void main(String[] args) {
});
if (!config.isTablistEnabled()) {
events.addListener(PlayerPacketOutEvent.class, event -> {
if (event.getPacket() instanceof PlayerInfoPacket) event.setCancelled(true);
if (event.getPacket() instanceof PlayerInfoUpdatePacket) event.setCancelled(true);
});
}
events.addListener(PlayerMoveEvent.class, event -> event.setCancelled(true));
Expand Down

0 comments on commit 0cb94ea

Please sign in to comment.