Add CommandWorldSpawn
Dieser Commit ist enthalten in:
Ursprung
4c8c9d3709
Commit
da5c5f45e4
@ -21,7 +21,6 @@ package de.steamwar.bausystem;
|
||||
|
||||
import de.steamwar.bausystem.commands.*;
|
||||
import de.steamwar.bausystem.world.*;
|
||||
import de.steamwar.core.CommandRemover;
|
||||
import de.steamwar.core.Core;
|
||||
import de.steamwar.core.VersionedRunnable;
|
||||
import de.steamwar.scoreboard.SWScoreboard;
|
||||
@ -44,7 +43,6 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.bukkit.scheduler.BukkitTask;
|
||||
|
||||
import java.util.UUID;
|
||||
import java.util.logging.Level;
|
||||
|
||||
public class BauSystem extends JavaPlugin implements Listener {
|
||||
private static BauSystem plugin;
|
||||
@ -92,7 +90,7 @@ public class BauSystem extends JavaPlugin implements Listener {
|
||||
new CommandSimulator();
|
||||
new CommandRedstoneTester();
|
||||
new CommandGUI();
|
||||
new CommandSpawn();
|
||||
new CommandWorldSpawn();
|
||||
|
||||
Bukkit.getPluginManager().registerEvents(this, this);
|
||||
Bukkit.getPluginManager().registerEvents(new RegionListener(), this);
|
||||
|
@ -25,17 +25,17 @@ import org.bukkit.World;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.player.PlayerTeleportEvent;
|
||||
|
||||
public class CommandSpawn extends SWCommand {
|
||||
public class CommandWorldSpawn extends SWCommand {
|
||||
|
||||
private World world = Bukkit.getWorlds().get(0);
|
||||
|
||||
public CommandSpawn() {
|
||||
super("spawn");
|
||||
public CommandWorldSpawn() {
|
||||
super("worldspawn");
|
||||
}
|
||||
|
||||
@Register(help = true)
|
||||
public void genericHelp(Player p, String... args) {
|
||||
p.sendMessage("§8/§espawn §8- §7Teleportiere dich zum Spawn");
|
||||
p.sendMessage("§8/§eworldspawn §8- §7Teleportiere dich zum Spawn");
|
||||
}
|
||||
|
||||
@Register
|
In neuem Issue referenzieren
Einen Benutzer sperren