Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- option ver:
- get:
- return console.getServer().getClass().getPackage().getName().split("\.")[3]
- import:
- java.util.Optional
- java.lang.Byte
- java.lang.Long
- java.lang.Short
- java.lang.reflect.Field
- org.bukkit.entity.Pose
- # java.lang.Byte
- net.minecraft.server.{@ver}.ChatComponentText
- net.minecraft.server.{@ver}.BlockPosition
- net.minecraft.server.{@ver}.EntityPose
- com.comphenix.protocol.wrappers.WrappedDataWatcher
- com.comphenix.protocol.wrappers.WrappedDataWatcher$Registry as DWReg
- com.comphenix.protocol.wrappers.WrappedDataWatcher$WrappedDataWatcherObject as DWObject
- org.bukkit.event.inventory.InventoryType
- org.bukkit.Bukkit
- org.bukkit.Location
- org.bukkit.World
- org.bukkit.util.Vector
- com.comphenix.protocol.reflect.EquivalentConverter
- com.comphenix.protocol.reflect.FieldAccessException
- com.comphenix.protocol.reflect.StructureModifier
- com.comphenix.protocol.utility.MinecraftReflection
- com.google.common.base.Objects
- command /test2:
- trigger:
- # set {_a} to new BlockPosition(0, 0 and 0)
- # broadcast "%{_a}%"
- set {_packetMeta} to new play_server_entity_metadata packet
- set int pnum 0 of {_packetMeta} to {id} #My entity ID
- set {_name} to Optional.of(new BlockPosition(-125, 91 and 63))
- set {_WDW} to new WrappedDataWatcher()
- set {_Serializer} to DWReg.getBlockPositionSerializer(true)
- set {_Dw} to new DWObject(13 and {_Serializer})
- {_WDW}.setObject({_Dw} and {_name})
- set {_tester2} to DWReg.get(EntityPose.SLEEPING and false)
- # set {_teser2} to DWReg.getEntityPoseSerializer(true)
- set {_tename2} to Pose.SLEEPING
- set {_teDw2} to new DWObject(6 and {_teser2})
- {_WDW}.setObject({_teDw2} and {_tename2})
- set watchable collection field 0 of {_packetMeta} to {_WDW}
- set {_f} to watchable collection field 0 of {_packetMeta}
- send packet {_packetMeta} to all players
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement