953954955956957958959
event.getMessages().add(new PlayerListMessage(name, event.getOnline(), (short) event.getPingDelay())); } @EventHandler public void onPlayerBed(PlayerBedEvent event) { event.getMessages().add(new PlayerBedMessage(event.getPlayer(), event.getBed(), getRepositionManager())); }
46474849505152
int id = buffer.readInt(); int used = buffer.readUnsignedByte(); int x = buffer.readInt(); int y = buffer.readUnsignedByte(); int z = buffer.readInt(); return new PlayerBedMessage(id, used, x, y, z, NullRepositionManager.getInstance()); }