CraftBook 3

CraftBook 3

139k Downloads

Possible to kick players off a chair if force teleported somewhere else?

LadyCailinBot opened this issue ยท 3 comments

commented

CRAFTBOOK-3241 - Reported by mibby

CraftBook dev 85

If a player is sitting in a chair and he teleports to someone else (via /tpa) or joins an arena (through plugin commands), he is teleported back sitting the chair immediately after the teleport. Would it be possible to de-mount the player if they are teleported forcefully somewhere else instead of denying all teleport / dismount events?

commented

Comment by me4502

The Bukkit API doesn't currently support this, it has no method of determining if it was caused by a command.

commented

Comment by mibby

What about globally determining whether a player moved away from the chair to not teleport him back to it?

commented

This was resolved a while ago, unsure when. Chairs remove players when they are no longer within a certain radius.