Test sneaking
Dieser Commit ist enthalten in:
Ursprung
ee46496ca2
Commit
1158382c0f
@ -103,8 +103,9 @@ public abstract class REntity {
|
||||
entity.setSneaking(sneaking);
|
||||
|
||||
DataWatcher dataWatcher = new DataWatcher(entity);
|
||||
dataWatcher.register(new DataWatcherObject<>(0, DataWatcherRegistry.a), sneaking ? (byte)0x02 : (byte)0x00);
|
||||
PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), dataWatcher, true);
|
||||
//dataWatcher.register(new DataWatcherObject<>(0, DataWatcherRegistry.a), sneaking ? (byte)0x02 : (byte)0x00);
|
||||
dataWatcher.register(new DataWatcherObject<>(6, DataWatcherRegistry.s), sneaking ? EntityPose.CROUCHING : EntityPose.STANDING);
|
||||
PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), dataWatcher, false);
|
||||
|
||||
for(Player player : Bukkit.getOnlinePlayers()){
|
||||
((CraftPlayer)player).getHandle().playerConnection.sendPacket(packet);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren