From 0170d3a463be79cc8c8dfed5f2279678a5b27114 Mon Sep 17 00:00:00 2001 From: Luis Date: Sun, 10 Mar 2024 21:19:47 +0000 Subject: [PATCH] feat: turn off collisions --- .../java/dev/emortal/minestom/parkourtag/ParkourTagGame.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/dev/emortal/minestom/parkourtag/ParkourTagGame.java b/src/main/java/dev/emortal/minestom/parkourtag/ParkourTagGame.java index fc6e00d..92b4e63 100644 --- a/src/main/java/dev/emortal/minestom/parkourtag/ParkourTagGame.java +++ b/src/main/java/dev/emortal/minestom/parkourtag/ParkourTagGame.java @@ -49,17 +49,20 @@ public class ParkourTagGame extends Game { public static final Team TAGGER_TEAM = MinecraftServer.getTeamManager().createBuilder("taggers") .teamColor(NamedTextColor.RED) .nameTagVisibility(TeamsPacket.NameTagVisibility.ALWAYS) + .collisionRule(TeamsPacket.CollisionRule.NEVER) .updateTeamPacket() .build(); public static final Team GOONS_TEAM = MinecraftServer.getTeamManager().createBuilder("goons") .teamColor(NamedTextColor.GREEN) .nameTagVisibility(TeamsPacket.NameTagVisibility.HIDE_FOR_OTHER_TEAMS) + .collisionRule(TeamsPacket.CollisionRule.NEVER) .updateTeamPacket() .build(); public static final Team DEAD_TEAM = MinecraftServer.getTeamManager().createBuilder("dead") .teamColor(NamedTextColor.GRAY) .prefix(Component.text("☠ ", NamedTextColor.GRAY)) .nameTagVisibility(TeamsPacket.NameTagVisibility.NEVER) + .collisionRule(TeamsPacket.CollisionRule.NEVER) .updateTeamPacket() .build();