Test sneaking
Dieser Commit ist enthalten in:
Ursprung
675ef2d274
Commit
bd9784b4a5
@ -101,7 +101,8 @@ public abstract class REntity {
|
|||||||
|
|
||||||
public void sneak(boolean sneaking) {
|
public void sneak(boolean sneaking) {
|
||||||
entity.setSneaking(sneaking);
|
entity.setSneaking(sneaking);
|
||||||
entity.getDataWatcher().register(new DataWatcherObject<>(0, DataWatcherRegistry.a), (byte)0x02);
|
entity.getDataWatcher().set(new DataWatcherObject<>(0, DataWatcherRegistry.a), (byte)0x02);
|
||||||
|
entity.getDataWatcher().markDirty(new DataWatcherObject<>(0, DataWatcherRegistry.a));
|
||||||
PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), entity.getDataWatcher(), false);
|
PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), entity.getDataWatcher(), false);
|
||||||
|
|
||||||
for(Player player : Bukkit.getOnlinePlayers()){
|
for(Player player : Bukkit.getOnlinePlayers()){
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren