refactor: remove unused command
This commit is contained in:
parent
0a964896e6
commit
0dc4c3cb80
3 changed files with 0 additions and 21 deletions
|
@ -4,16 +4,10 @@ import java.io.IOException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import com.destroystokyo.paper.Title;
|
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.inventory.InventoryCloseEvent.Reason;
|
|
||||||
import org.bukkit.potion.PotionEffect;
|
|
||||||
import org.bukkit.potion.PotionEffectType;
|
|
||||||
import org.json.simple.JSONArray;
|
import org.json.simple.JSONArray;
|
||||||
import org.json.simple.JSONObject;
|
import org.json.simple.JSONObject;
|
||||||
import org.json.simple.JSONValue;
|
import org.json.simple.JSONValue;
|
||||||
|
@ -76,17 +70,6 @@ public class VaroCommand implements CommandExecutor {
|
||||||
"§c§lFehler:§r§c beim Verbinden mit der Mojang-API ist ein Fehler aufgetreten. Eventuell sind die Mojang Server down.");
|
"§c§lFehler:§r§c beim Verbinden mit der Mojang-API ist ein Fehler aufgetreten. Eventuell sind die Mojang Server down.");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
} else if (args.length == 1 && args[0].equals("start")) {
|
|
||||||
sender.sendMessage("§aStarting...");
|
|
||||||
for (final Player p : Bukkit.getServer().getOnlinePlayers()) {
|
|
||||||
// p.getInventory().clear(); //TODO: uncomment after debuging
|
|
||||||
p.closeInventory(Reason.CANT_USE);
|
|
||||||
for (final PotionEffect potion : p.getActivePotionEffects())
|
|
||||||
p.removePotionEffect(potion.getType());
|
|
||||||
|
|
||||||
p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 60 * 20, 1, false, false, false));
|
|
||||||
p.sendTitle(new Title("TODO: Title, etc"));
|
|
||||||
}
|
|
||||||
} else if (args.length == 2 && args[0].equals("portal")) {
|
} else if (args.length == 2 && args[0].equals("portal")) {
|
||||||
if (args[1].equals("enable")) {
|
if (args[1].equals("enable")) {
|
||||||
this.plugin.setCanCreatePortal(true);
|
this.plugin.setCanCreatePortal(true);
|
||||||
|
@ -154,7 +137,6 @@ public class VaroCommand implements CommandExecutor {
|
||||||
+ teamName + "§r zu setzen.\nFühre danach dieses Kommando erneut aus, um den Spawn zu setzten.");
|
+ teamName + "§r zu setzen.\nFühre danach dieses Kommando erneut aus, um den Spawn zu setzten.");
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage("\n§6========== §b§lCliffbreak.de VARO §r§6============\n ");
|
sender.sendMessage("\n§6========== §b§lCliffbreak.de VARO §r§6============\n ");
|
||||||
sender.sendMessage("§a/varo start: §rStarte das Varo Projekt!");
|
|
||||||
sender.sendMessage("§a/varo ban [Spieler]: §rSpieler bannen");
|
sender.sendMessage("§a/varo ban [Spieler]: §rSpieler bannen");
|
||||||
sender.sendMessage("§a/varo unban [Spieler]: §rSpieler wieder auf den Server lassen");
|
sender.sendMessage("§a/varo unban [Spieler]: §rSpieler wieder auf den Server lassen");
|
||||||
sender.sendMessage("§a/varo portal [enable/disable]: §rAktiviere/Deaktiviere die Portal-Erstellung");
|
sender.sendMessage("§a/varo portal [enable/disable]: §rAktiviere/Deaktiviere die Portal-Erstellung");
|
||||||
|
|
|
@ -25,7 +25,6 @@ public class VaroTabCompleter implements TabCompleter {
|
||||||
if (args.length == 1) {
|
if (args.length == 1) {
|
||||||
list.add("unban");
|
list.add("unban");
|
||||||
list.add("ban");
|
list.add("ban");
|
||||||
list.add("start");
|
|
||||||
list.add("portal");
|
list.add("portal");
|
||||||
list.add("addspawns");
|
list.add("addspawns");
|
||||||
} else if (args.length == 2 && args[0].equals("unban")) {
|
} else if (args.length == 2 && args[0].equals("unban")) {
|
||||||
|
|
|
@ -5,8 +5,6 @@ import java.io.IOException;
|
||||||
|
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
|
|
||||||
import de.cliffbreak.varo.Varo;
|
|
||||||
|
|
||||||
public class LangUtils {
|
public class LangUtils {
|
||||||
private final File file;
|
private final File file;
|
||||||
private final YamlConfiguration config;
|
private final YamlConfiguration config;
|
||||||
|
|
Loading…
Reference in a new issue