geforkt von Mirrors/Paper
#960: Add Player#showDemoScreen
By: coll1234567 <joshl5324@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
ffdf8aeecf
Commit
96d5854b53
@ -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();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren