Commit 16ff40ff authored by Linus K.'s avatar Linus K.
Browse files

Delay tp destination particles for viewing pleasure

parent 00225198
Pipeline #128 passed with stage
in 38 seconds
......@@ -138,8 +138,11 @@ data class TeleportingPlayer(val player: Player, val startLocation: Location,
if(tp.startLocation.world != tp.targetLocation.world || tp.startLocation.distance(tp.targetLocation) > 15.0) {
if (teleportTicks == 0L && !tp.player.hasPotionEffect(PotionEffectType.INVISIBILITY))
displayWarpEffect(tp.startLocation.clone())
if(!tp.player.hasPotionEffect(PotionEffectType.INVISIBILITY))
displayWarpEffect(tp.targetLocation.clone())
if(!tp.player.hasPotionEffect(PotionEffectType.INVISIBILITY)) {
Bukkit.getScheduler().scheduleSyncDelayedTask(Plugin.instance, {
displayWarpEffect(tp.targetLocation.clone())
}, 3)
}
}
tp.onSuccess()
} else {
......
......@@ -18,7 +18,7 @@
<revision>0.1.0-SNAPSHOT</revision>
<mcplugins.autosyston.version>0.3.0</mcplugins.autosyston.version>
<mcplugins.kotlin.version>1.0.0</mcplugins.kotlin.version>
<mcplugins.teleportastic.version>0.4.2</mcplugins.teleportastic.version>
<mcplugins.teleportastic.version>0.4.3</mcplugins.teleportastic.version>
<spigot-api.version>1.16.3-R0.1-SNAPSHOT</spigot-api.version>
<mcplugins.author>LinusCDE</mcplugins.author>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment