We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0848bdd commit ec042a0Copy full SHA for ec042a0
eternalcore-api-example/src/main/java/com/eternalcode/example/feature/home/ApiHomeListener.java
@@ -100,9 +100,9 @@ void onHomeTeleport(HomeTeleportEvent event) {
100
101
player.sendMessage("Teleporting to home...");
102
103
-// if (player.hasPotionEffect(PotionEffectType.SLOW)) { support it
104
-// player.sendMessage("You are slowed down!");
105
-// player.teleport(player.getWorld().getSpawnLocation());
106
-// }
+ if (player.hasPotionEffect(PotionEffectType.SLOWNESS)) {
+ player.sendMessage("You are slowed down!");
+ player.teleport(player.getWorld().getSpawnLocation());
+ }
107
}
108
0 commit comments