mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 18:27:17 +01:00
parent
ffdf8aeecf
commit
96d5854b53
1 changed files with 8 additions and 0 deletions
|
@ -45,6 +45,7 @@ import net.minecraft.network.protocol.game.PacketPlayOutCustomPayload;
|
|||
import net.minecraft.network.protocol.game.PacketPlayOutCustomSoundEffect;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityEquipment;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutExperience;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutGameStateChange;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutMap;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutNamedSoundEffect;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutPlayerInfo;
|
||||
|
@ -1721,6 +1722,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||
getInventory().setItemInMainHand(hand);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void showDemoScreen() {
|
||||
if (getHandle().connection == null) return;
|
||||
|
||||
getHandle().connection.send(new PacketPlayOutGameStateChange(PacketPlayOutGameStateChange.DEMO_EVENT, PacketPlayOutGameStateChange.DEMO_PARAM_INTRO));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAllowingServerListings() {
|
||||
return getHandle().allowsListing();
|
||||
|
|
Loading…
Reference in a new issue