Fix for WorldspawnCommand
Dieser Commit ist enthalten in:
Ursprung
3229e7e955
Commit
4da8f2f60e
@ -29,11 +29,11 @@ import org.bukkit.entity.Player;
|
|||||||
import org.bukkit.event.player.PlayerTeleportEvent;
|
import org.bukkit.event.player.PlayerTeleportEvent;
|
||||||
|
|
||||||
@Linked(LinkageType.COMMAND)
|
@Linked(LinkageType.COMMAND)
|
||||||
public class WorldSpawnCommand extends SWCommand {
|
public class WorldspawnCommand extends SWCommand {
|
||||||
|
|
||||||
private static final World WORLD = Bukkit.getWorlds().get(0);
|
private static final World WORLD = Bukkit.getWorlds().get(0);
|
||||||
|
|
||||||
public WorldSpawnCommand() {
|
public WorldspawnCommand() {
|
||||||
super("worldspawn");
|
super("worldspawn");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,6 +44,6 @@ public class WorldSpawnCommand extends SWCommand {
|
|||||||
|
|
||||||
@Register
|
@Register
|
||||||
public void genericCommand(Player p) {
|
public void genericCommand(Player p) {
|
||||||
p.teleport(WORLD.getSpawnLocation(), PlayerTeleportEvent.TeleportCause.COMMAND);
|
p.teleport(WORLD.getSpawnLocation().add(0.5, 0, 0.5), PlayerTeleportEvent.TeleportCause.COMMAND);
|
||||||
}
|
}
|
||||||
}
|
}
|
In neuem Issue referenzieren
Einen Benutzer sperren