Test sneaking
Dieser Commit ist enthalten in:
Ursprung
4675f05be8
Commit
3939a417d3
@ -104,7 +104,9 @@ public abstract class REntity {
|
|||||||
|
|
||||||
DataWatcher dataWatcher = new DataWatcher(entity);
|
DataWatcher dataWatcher = new DataWatcher(entity);
|
||||||
System.out.println("Let " + entity.getName() + " sneak " + sneaking);
|
System.out.println("Let " + entity.getName() + " sneak " + sneaking);
|
||||||
dataWatcher.register(new DataWatcherObject<>(0, DataWatcherRegistry.a), sneaking ? (byte)0x02 : (byte)0x40);
|
DataWatcherObject<Byte> dwo = new DataWatcherObject<>(0, DataWatcherRegistry.a);
|
||||||
|
dataWatcher.register(dwo, sneaking ? (byte)0x02 : (byte)0x40);
|
||||||
|
dataWatcher.markDirty(dwo);
|
||||||
PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), dataWatcher, true);
|
PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), dataWatcher, true);
|
||||||
|
|
||||||
for(Player player : Bukkit.getOnlinePlayers()){
|
for(Player player : Bukkit.getOnlinePlayers()){
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren