CommandHelper

CommandHelper

46.5k Downloads

set_ploc weird behaviour

LadyCailinBot opened this issue ยท 6 comments

commented

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

commented

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']);
}
commented

Comment by phanaticd

yes sorry forgot I made this: http://pastebin.com/fs7sMLT2

commented

Comment by phanaticd

the data in the first event output is correct, the second outputted event is all wrong

commented

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

commented

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.

commented

Comment by phanaticd

I see this in console when it happens

[13:36:32] [Server thread/WARN]: Phanatic moved too quickly! 24.19999998807907,40.5,73.10897717407072