com.comphenix.protocol.injector.PacketConstructor Java Examples
The following examples show how to use
com.comphenix.protocol.injector.PacketConstructor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StructureCUI.java From FastAsyncWorldedit with GNU General Public License v3.0 | 5 votes |
private void sendOp() { Player player = this.<Player>getPlayer().parent; ProtocolManager manager = ProtocolLibrary.getProtocolManager(); PacketConstructor statusCtr = manager.createPacketConstructor(PacketType.Play.Server.ENTITY_STATUS, player, (byte) 28); PacketContainer status = statusCtr.createPacket(player, (byte) 28); try { manager.sendServerPacket(player, status); } catch (InvocationTargetException e) { e.printStackTrace(); } }