SteamWar/BauSystem2.0
Archiviert
12
0

Fix for WorldspawnCommand

Dieser Commit ist enthalten in:
Zeanon 2021-04-18 00:25:33 +02:00
Ursprung 3229e7e955
Commit 4da8f2f60e

Datei anzeigen

@ -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);
} }
} }