Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 05:20:07 +01:00
Added PlayerToggleSneakEvent.isSneaking().
Dieser Commit ist enthalten in:
Ursprung
4cefee5be7
Commit
a6b8b80fad
@ -815,7 +815,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
|||||||
|
|
||||||
if (packet19entityaction.animation == 1 || packet19entityaction.animation == 2) {
|
if (packet19entityaction.animation == 1 || packet19entityaction.animation == 2) {
|
||||||
Player player = getPlayer();
|
Player player = getPlayer();
|
||||||
PlayerToggleSneakEvent event = new PlayerToggleSneakEvent(player);
|
PlayerToggleSneakEvent event = new PlayerToggleSneakEvent(player, packet19entityaction.animation == 1);
|
||||||
server.getPluginManager().callEvent(event);
|
server.getPluginManager().callEvent(event);
|
||||||
if (event.isCancelled()) {
|
if (event.isCancelled()) {
|
||||||
return;
|
return;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren