Skip to content

Commit ec042a0

Browse files
committed
Fix potion effect
1 parent 0848bdd commit ec042a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eternalcore-api-example/src/main/java/com/eternalcode/example/feature/home/ApiHomeListener.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ void onHomeTeleport(HomeTeleportEvent event) {
100100

101101
player.sendMessage("Teleporting to home...");
102102

103-
// if (player.hasPotionEffect(PotionEffectType.SLOW)) { support it
104-
// player.sendMessage("You are slowed down!");
105-
// player.teleport(player.getWorld().getSpawnLocation());
106-
// }
103+
if (player.hasPotionEffect(PotionEffectType.SLOWNESS)) {
104+
player.sendMessage("You are slowed down!");
105+
player.teleport(player.getWorld().getSpawnLocation());
106+
}
107107
}
108108
}

0 commit comments

Comments
 (0)