From da5c5f45e4186b57eae75bef2cd788c08a0850e5 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 2 Apr 2021 17:50:29 +0200 Subject: [PATCH] Add CommandWorldSpawn --- BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java | 4 +--- .../{CommandSpawn.java => CommandWorldSpawn.java} | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) rename BauSystem_Main/src/de/steamwar/bausystem/commands/{CommandSpawn.java => CommandWorldSpawn.java} (87%) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java b/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java index 72c8421..86d425a 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/BauSystem.java @@ -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); diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSpawn.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandWorldSpawn.java similarity index 87% rename from BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSpawn.java rename to BauSystem_Main/src/de/steamwar/bausystem/commands/CommandWorldSpawn.java index 8d40a75..2f9c134 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSpawn.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandWorldSpawn.java @@ -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