Dieser Commit ist enthalten in:
Ursprung
3465956c4f
Commit
e1fc5525ec
@ -22,9 +22,9 @@ package de.steamwar.bausystem.features.util;
|
|||||||
import de.steamwar.bausystem.BauSystem;
|
import de.steamwar.bausystem.BauSystem;
|
||||||
import de.steamwar.command.SWCommand;
|
import de.steamwar.command.SWCommand;
|
||||||
import de.steamwar.linkage.Linked;
|
import de.steamwar.linkage.Linked;
|
||||||
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.player.PlayerTeleportEvent;
|
import org.bukkit.event.player.PlayerTeleportEvent;
|
||||||
import org.bukkit.Location;
|
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
@ -54,4 +54,13 @@ public class TeleportCommand extends SWCommand {
|
|||||||
l.setZ(z + 0.5);
|
l.setZ(z + 0.5);
|
||||||
p.teleport(l, PlayerTeleportEvent.TeleportCause.COMMAND);
|
p.teleport(l, PlayerTeleportEvent.TeleportCause.COMMAND);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Register
|
||||||
|
public void locationCommand(Player p, double x, double y, double z) {
|
||||||
|
Location l = p.getLocation();
|
||||||
|
l.setX(x);
|
||||||
|
l.setY(y);
|
||||||
|
l.setZ(z);
|
||||||
|
p.teleport(l, PlayerTeleportEvent.TeleportCause.COMMAND);
|
||||||
|
}
|
||||||
}
|
}
|
In neuem Issue referenzieren
Einen Benutzer sperren