set_ploc weird behaviour
LadyCailinBot opened this issue ยท 6 comments
CMDHELPER-3127 - Reported by phanaticd
when using set_ploc players feel like they are getting teleported twice, and when it is cross worlds they sometimes get stuck into the ground or die in the void
Comment by PseudoKnight
Did you try binding the teleport event with debug output to see what's happening?
bind(player_teleport, array('id': 'test', 'priority': 'MONITOR'), null, @event) {
console('Debug: '.@event['player'].' teleported from '.@event['from'].' to '.@event['to']);
}
Comment by phanaticd
yes sorry forgot I made this: http://pastebin.com/fs7sMLT2
Comment by phanaticd
the data in the first event output is correct, the second outputted event is all wrong
Comment by phanaticd
im pretty sure its a spigot bug though: https://hub.spigotmc.org/jira/browse/SPIGOT-1807
but no one has fixed it in 10 days
Comment by PseudoKnight
https://hub.spigotmc.org/jira/browse/SPIGOT-1903
Nothing that can be done in CH, so I'm closing this.
If anybody encounters this in your scripts, use set_timeout() before teleporting in a pressure plate event. It may also be caused by other things, but that's one of them.