From 840016ec44e0a25f18a8f67818c7a647adaff793 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 3 Apr 2021 22:33:38 +0200 Subject: [PATCH] Add CommandSelect.instance --- .../src/de/steamwar/bausystem/commands/CommandSelect.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSelect.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSelect.java index 007bdf0..7771b20 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSelect.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSelect.java @@ -9,12 +9,16 @@ import de.steamwar.bausystem.Permission; import de.steamwar.bausystem.world.Welt; import de.steamwar.bausystem.world.regions.*; import de.steamwar.command.SWCommand; +import lombok.Getter; import org.bukkit.Bukkit; import org.bukkit.entity.Player; public class CommandSelect extends SWCommand { + @Getter + private static CommandSelect instance = null; + public static final WorldEditPlugin WORLDEDIT_PLUGIN = ((WorldEditPlugin) Bukkit.getPluginManager().getPlugin("WorldEdit")); public static final World BUKKITWORLD = new BukkitWorld(Bukkit.getWorlds().get(0)); @@ -22,6 +26,10 @@ public class CommandSelect extends SWCommand { super("select"); } + { + instance = this; + } + @Register(help = true) public void genericHelp(Player p, String... args) { p.sendMessage("§8/§eselect §8[§7RegionsTyp§8] §8- §7Wähle einen RegionsTyp aus");