Dieser Commit ist enthalten in:
Ursprung
5265c298d2
Commit
e9d7836f9a
@ -23,7 +23,9 @@ import de.steamwar.bausystem.features.warp.AbstractWarpEntity;
|
||||
import de.steamwar.bausystem.shared.BaseArmorStand19;
|
||||
import net.minecraft.network.chat.IChatMutableComponent;
|
||||
import net.minecraft.network.chat.contents.LiteralContents;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityTeleport;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
@ -54,6 +56,13 @@ public class WarpEntity19 extends BaseArmorStand19 implements AbstractWarpEntity
|
||||
|
||||
@Override
|
||||
public boolean hide(Player player) {
|
||||
|
||||
this.position.setY(this.position.getY() - 1000);
|
||||
this.e(this.position.getX(), this.position.getY(), this.position.getZ());
|
||||
|
||||
PacketPlayOutEntityTeleport entityTeleport = new PacketPlayOutEntityTeleport(this);
|
||||
((CraftPlayer) player).getHandle().b.a(entityTeleport);
|
||||
|
||||
sendEntityDestroy(player);
|
||||
ag();
|
||||
return true;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren