CypherX/xAuth — Issue #22: Executing commands before xauth
Author: amunro92
Created: 2011-12-28 01:43:06+00:00
State: open

I am trying to create a first spawn plugin that is compatible with xauth (so that after a new player registers, they are teleported to a desired waypoint). It has to intercept the previous location between xauth and the normal spawn. Any ideas how I can do this... I have tried:

plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
public void run() {
p.teleport( loc );
}
}, 1);

But at 1 tick, this seems to be hit and miss. Sometimes it works, sometimes it doesn't.