Switched from Item.passenger mode to PacketGenerator mode.

This commit is contained in:
cnaude 2012-11-20 19:17:15 -07:00
parent e9cd29c816
commit 53ec8b02db

View File

@ -93,6 +93,10 @@ public class EventListener implements Listener {
if (plugin.notifyplayer) {
player.sendMessage(ChatColor.GRAY + "You are no longer sitting.");
}
Packet40EntityMetadata packet = new Packet40EntityMetadata(player.getPlayer().getEntityId(), new ChairWatcher((byte) 0), false);
for (Player play : Bukkit.getOnlinePlayers()) {
((CraftPlayer) play).getHandle().netServerHandler.sendPacket(packet);
}
return;
}