„BauSystem_Main/src/de/steamwar/bausystem/features/util/TeleportCommand.java“ ändern
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Ursprung
248c3a17c6
Commit
635d235a87
@ -24,6 +24,7 @@ import de.steamwar.command.SWCommand;
|
|||||||
import de.steamwar.linkage.Linked;
|
import de.steamwar.linkage.Linked;
|
||||||
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;
|
||||||
|
|
||||||
@ -44,4 +45,13 @@ public class TeleportCommand extends SWCommand {
|
|||||||
}
|
}
|
||||||
p.teleport(target, PlayerTeleportEvent.TeleportCause.COMMAND);
|
p.teleport(target, PlayerTeleportEvent.TeleportCause.COMMAND);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Register
|
||||||
|
public void locationCommand(Player p, int x, int y, int z) {
|
||||||
|
Location l = p.getLocation();
|
||||||
|
l.setX(x + 0.5);
|
||||||
|
l.setY(y);
|
||||||
|
l.setZ(z + 0.5);
|
||||||
|
p.teleport(l, PlayerTeleportEvent.TeleportCause.COMMAND);
|
||||||
|
}
|
||||||
}
|
}
|
In neuem Issue referenzieren
Einen Benutzer sperren