Search in sources :

Example 1 with PacketPlayOutGameStateChange

use of net.minecraft.server.v1_10_R1.PacketPlayOutGameStateChange in project Denizen-For-Bukkit by DenizenScript.

the class PlayerHelper_v1_11_R1 method showEndCredits.

@Override
public void showEndCredits(Player player) {
    ((CraftPlayer) player).getHandle().viewingCredits = true;
    ((CraftPlayer) player).getHandle().playerConnection.sendPacket(new PacketPlayOutGameStateChange(4, 0.0F));
}
Also used : CraftPlayer(org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer) PacketPlayOutGameStateChange(net.minecraft.server.v1_11_R1.PacketPlayOutGameStateChange)

Example 2 with PacketPlayOutGameStateChange

use of net.minecraft.server.v1_10_R1.PacketPlayOutGameStateChange in project Denizen-For-Bukkit by DenizenScript.

the class PlayerHelper_v1_10_R1 method showEndCredits.

@Override
public void showEndCredits(Player player) {
    ((CraftPlayer) player).getHandle().viewingCredits = true;
    ((CraftPlayer) player).getHandle().playerConnection.sendPacket(new PacketPlayOutGameStateChange(4, 0.0F));
}
Also used : CraftPlayer(org.bukkit.craftbukkit.v1_10_R1.entity.CraftPlayer) PacketPlayOutGameStateChange(net.minecraft.server.v1_10_R1.PacketPlayOutGameStateChange)

Example 3 with PacketPlayOutGameStateChange

use of net.minecraft.server.v1_10_R1.PacketPlayOutGameStateChange in project Denizen-For-Bukkit by DenizenScript.

the class PlayerHelper_v1_8_R3 method showEndCredits.

@Override
public void showEndCredits(Player player) {
    ((CraftPlayer) player).getHandle().viewingCredits = true;
    ((CraftPlayer) player).getHandle().playerConnection.sendPacket(new PacketPlayOutGameStateChange(4, 0.0F));
}
Also used : CraftPlayer(org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer) PacketPlayOutGameStateChange(net.minecraft.server.v1_8_R3.PacketPlayOutGameStateChange)

Example 4 with PacketPlayOutGameStateChange

use of net.minecraft.server.v1_10_R1.PacketPlayOutGameStateChange in project Denizen-For-Bukkit by DenizenScript.

the class PlayerHelper_v1_9_R2 method showEndCredits.

@Override
public void showEndCredits(Player player) {
    ((CraftPlayer) player).getHandle().viewingCredits = true;
    ((CraftPlayer) player).getHandle().playerConnection.sendPacket(new PacketPlayOutGameStateChange(4, 0.0F));
}
Also used : CraftPlayer(org.bukkit.craftbukkit.v1_9_R2.entity.CraftPlayer) PacketPlayOutGameStateChange(net.minecraft.server.v1_9_R2.PacketPlayOutGameStateChange)

Aggregations

PacketPlayOutGameStateChange (net.minecraft.server.v1_10_R1.PacketPlayOutGameStateChange)1 PacketPlayOutGameStateChange (net.minecraft.server.v1_11_R1.PacketPlayOutGameStateChange)1 PacketPlayOutGameStateChange (net.minecraft.server.v1_8_R3.PacketPlayOutGameStateChange)1 PacketPlayOutGameStateChange (net.minecraft.server.v1_9_R2.PacketPlayOutGameStateChange)1 CraftPlayer (org.bukkit.craftbukkit.v1_10_R1.entity.CraftPlayer)1 CraftPlayer (org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer)1 CraftPlayer (org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer)1 CraftPlayer (org.bukkit.craftbukkit.v1_9_R2.entity.CraftPlayer)1