Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
65 kB
2
Indexable
Never
[01:09:58] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'sws' in plugin UltraSkyWars-Setup v8.0.0
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[server.jar:git-PaperSpigot-e91f421c]
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:146) ~[server.jar:git-PaperSpigot-e91f421c]
	at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:666) ~[server.jar:git-PaperSpigot-e91f421c]
	at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1194) ~[server.jar:git-PaperSpigot-e91f421c]
	at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1006) ~[server.jar:git-PaperSpigot-e91f421c]
	at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[server.jar:git-PaperSpigot-e91f421c]
	at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[server.jar:git-PaperSpigot-e91f421c]
	at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) ~[server.jar:git-PaperSpigot-e91f421c]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_312]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_312]
	at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) ~[server.jar:git-PaperSpigot-e91f421c]
	at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:840) ~[server.jar:git-PaperSpigot-e91f421c]
	at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:368) ~[server.jar:git-PaperSpigot-e91f421c]
	at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:775) ~[server.jar:git-PaperSpigot-e91f421c]
	at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:611) ~[server.jar:git-PaperSpigot-e91f421c]
	at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$0(MinecraftServer.java:133) ~[server.jar:git-PaperSpigot-e91f421c]
	at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_312]
Caused by: java.lang.NoSuchMethodError: io.github.Leonardo0013YT.UltraSkyWars.UltraSkyWars.getIjm()Lio/github/Leonardo0013YT/UltraSkyWars/managers/InjectionManager;
	at io.github.Leonardo0013YT.UltraSkyWarsSetup.cmds.SetupCMD.onCommand(SetupCMD.java:97) ~[?:?]
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[server.jar:git-PaperSpigot-e91f421c]

Te mandaré algunos códigos para que vayas intentando decirme como puedo solucionarlo

package io.github.Leonardo0013YT.UltraSkyWarsSetup.cmds;

import io.github.Leonardo0013YT.UltraSkyWars.UltraSkyWars;
import io.github.Leonardo0013YT.UltraSkyWars.fanciful.FancyMessage;
import io.github.Leonardo0013YT.UltraSkyWars.superclass.UltraInventory;
import io.github.Leonardo0013YT.UltraSkyWars.utils.Utils;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.Main;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.ArenaSetup;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.ChestSetup;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.ChestTypeSetup;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.PreviewSetup;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.SoulWellSetup;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.cosmetics.BalloonSetup;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.cosmetics.GlassSetup;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.cosmetics.KillSoundSetup;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.cosmetics.KitSetup;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.cosmetics.PartingSetup;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.cosmetics.TauntSetup;
import io.github.Leonardo0013YT.UltraSkyWarsSetup.setup.cosmetics.TrailSetup;
import net.md_5.bungee.api.chat.ClickEvent;
import net.md_5.bungee.api.chat.HoverEvent;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;

public class SetupCMD implements CommandExecutor {
  private UltraSkyWars plugin;
  
  private Main setup;
  
  public SetupCMD(UltraSkyWars plugin, Main setup) {
    this.plugin = plugin;
    this.setup = setup;
  }
  
  public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
    if (sender instanceof Player) {
      String type;
      PreviewSetup sp;
      String cName, name;
      World w;
      String name2;
      World w2;
      String delete, arena1, nameks, arena2;
      KillSoundSetup kss;
      ArenaSetup as;
      String namebp;
      PartingSetup ps;
      String nameb;
      BalloonSetup bs;
      String namett;
      TrailSetup tts;
      String namet;
      TauntSetup ts;
      String namek;
      KitSetup ks;
      String nameg, schematicg, cleag;
      GlassSetup gs;
      UltraInventory inventory;
      String n, generic;
      Player p = (Player)sender;
      if (!p.hasPermission("usw.admin")) {
        p.sendMessage(this.plugin.getLang().get(p, "messages.noPermission"));
        return true;
      } 
      if (args.length < 1) {
        sendHelp((CommandSender)p);
        return true;
      } 
      switch (args[0].toLowerCase()) {
        case "setpreview":
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          type = args[1].toUpperCase();
          if (!type.equals("BALLOON") && !type.equals("GLASS")) {
            p.sendMessage(this.plugin.getLang().get("setup.noTypePreview"));
            return true;
          } 
          if (!this.setup.getSm().isSetupPreview(p))
            this.setup.getSm().setSetupPreview(p, new PreviewSetup(type)); 
          sp = this.setup.getSm().getSetupPreview(p);
          this.setup.getSem().createPreviewMenu(p, sp);
          return false;
        case "createchest":
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          cName = args[1];
          if (!this.setup.getSm().isChestType(p))
            this.setup.getSm().setChestType(p, new ChestTypeSetup(cName)); 
          this.setup.getSem().createChestSetupMenu(p, this.setup.getSm().getChestType(p));
          return false;
        case "reload":
          if (args.length == 1) {
            this.plugin.reload();
            p.sendMessage(this.plugin.getLang().get(p, "setup.reload"));
            return true;
          } 
          switch (args[1].toLowerCase()) {
            case "lang":
              this.plugin.reloadLang();
              p.sendMessage(this.plugin.getLang().get(p, "setup.reloadLang"));
              return false;
            case "config":
              this.plugin.reload();
              p.sendMessage(this.plugin.getLang().get(p, "setup.reload"));
              return false;
          } 
          sendHelp(sender);
          return false;
        case "setupblock":
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          switch (args[1].toLowerCase()) {
            case "cubelets":
              if (!this.plugin.getIjm().isCubeletsInjection()) {
                p.sendMessage(this.plugin.getLang().get(p, "injections.cubelets"));
                return true;
              } 
              if (!this.setup.getSm().isSetupCubeBlock(p))
                this.setup.getSm().setSetupCubeBlock(p); 
              p.sendMessage(this.plugin.getLang().get(p, "messages.addRemoveBlock"));
              return false;
            case "soulwell":
              if (!this.setup.getSm().isSetupSoulBlock(p))
                this.setup.getSm().setSetupSoulBlock(p); 
              p.sendMessage(this.plugin.getLang().get(p, "messages.addRemoveBlock"));
              return false;
          } 
          sendHelp(sender);
          return false;
        case "rewards":
          if (!this.setup.getSm().isSetupSoulWell(p))
            this.setup.getSm().setSetupSoulWell(p, new SoulWellSetup(this.plugin)); 
          this.setup.getSem().createSoulWellMenu(p);
          return false;
        case "create":
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          if (this.setup.getSm().isSetup(p)) {
            p.sendMessage(this.plugin.getLang().get(p, "setup.alreadyCreating"));
            return true;
          } 
          name = args[1];
          if (this.plugin.getGm().getGameByName(name) != null) {
            p.sendMessage(this.plugin.getLang().get("setup.arena.alreadyMapEdit"));
            return true;
          } 
          this.setup.getSm().setSetup(p, new ArenaSetup(this.plugin, name));
          if (this.plugin.getCm().isSlimeworldmanager())
            this.plugin.getAdm().getSlime().createWorld(name); 
          w = this.plugin.getWc().createEmptyWorld(name);
          w.getBlockAt(0, 75, 0).setType(Material.STONE);
          p.getInventory().clear();
          p.teleport(w.getSpawnLocation());
          p.getInventory().remove(this.plugin.getIm().getSetup());
          p.getInventory().remove(this.plugin.getIm().getCenter());
          p.getInventory().addItem(new ItemStack[] { this.plugin.getIm().getSetup() });
          p.sendMessage(this.plugin.getLang().get("setup.arena.createMap").replace("<name>", name));
          return false;
        case "edit":
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          if (this.setup.getSm().isSetup(p)) {
            p.sendMessage(this.plugin.getLang().get(p, "setup.alreadyCreating"));
            return true;
          } 
          name2 = args[1];
          if (this.plugin.getGm().getGameByName(name2) == null)
            return true; 
          this.setup.getSm().setSetup(p, new ArenaSetup(this.plugin, p, name2, name2));
          w2 = Bukkit.getWorld(name2);
          p.getInventory().clear();
          p.teleport(w2.getSpawnLocation());
          p.getInventory().remove(this.plugin.getIm().getSetup());
          p.getInventory().remove(this.plugin.getIm().getCenter());
          p.getInventory().addItem(new ItemStack[] { this.plugin.getIm().getSetup() });
          p.sendMessage("you're editing the map + name2 + ");
          return false;
        case "delete":
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          delete = args[1];
          if (!this.plugin.getGm().getWorlds().containsKey(delete)) {
            p.sendMessage("game not exists.");
            return true;
          } 
          if (this.setup.getSm().isDelete(p)) {
            this.plugin.getArenas().set("arenas." + delete, null);
            this.plugin.getArenas().save();
            this.setup.getSm().removeDelete(p);
            p.sendMessage("removed the map + delete + ");
            return true;
          } 
          this.setup.getSm().setDelete(p, delete);
          p.sendMessage("config your delete executing delete " + delete + ");
          return false;
        case "clone":
          if (args.length < 3) {
            sendHelp((CommandSender)p);
            return true;
          } 
          arena1 = args[1];
          if (!this.plugin.getGm().getWorlds().containsKey(arena1)) {
            p.sendMessage("game not exists.");
            return true;
          } 
          arena2 = args[2];
          if (this.plugin.getGm().getWorlds().containsKey(arena2)) {
            p.sendMessage(this.plugin.getLang().get("setup.arena.alreadyMapEdit"));
            return true;
          } 
          this.plugin.getWc().createEmptyWorld(arena2);
          as = new ArenaSetup(this.plugin, p, arena1, arena2);
          as.save(p, arena2);
          p.sendMessage(this.plugin.getLang().get("setup.arena.cloneMap").replace("<map1>", arena1).replace("<map2>", arena2));
          return false;
        case "killsounds":
          if (this.setup.getSm().isSetupKillSound(p)) {
            KillSoundSetup killSoundSetup = this.setup.getSm().getSetupKillSound(p);
            this.setup.getSem().createKillSoundMenu(p, killSoundSetup);
            return true;
          } 
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          nameks = args[1];
          kss = new KillSoundSetup(p, nameks);
          this.setup.getSm().setSetupKillSound(p, kss);
          this.setup.getSem().createKillSoundMenu(p, kss);
          p.sendMessage(this.plugin.getLang().get(p, "setup.killsounds.created").replaceAll("<name>", kss.getName()));
          return false;
        case "parting":
          if (this.setup.getSm().isSetupParting(p)) {
            PartingSetup partingSetup = this.setup.getSm().getSetupParting(p);
            this.setup.getSem().createPartingMenu(p, partingSetup);
            return true;
          } 
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          namebp = args[1];
          ps = new PartingSetup(p, namebp);
          this.setup.getSm().setSetupParting(p, ps);
          this.setup.getSem().createPartingMenu(p, ps);
          p.sendMessage(this.plugin.getLang().get(p, "setup.parting.created").replaceAll("<name>", ps.getName()));
          return false;
        case "balloons":
          if (this.setup.getSm().isSetupBalloon(p)) {
            BalloonSetup balloonSetup = this.setup.getSm().getSetupBalloon(p);
            this.setup.getSem().createSetupBalloonsMenu(p, balloonSetup);
            return true;
          } 
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          nameb = args[1];
          bs = new BalloonSetup(p, nameb);
          this.setup.getSm().setSetupBalloon(p, bs);
          this.setup.getSem().createSetupBalloonsMenu(p, bs);
          p.sendMessage(this.plugin.getLang().get(p, "setup.balloons.created").replaceAll("<name>", bs.getName()));
          return false;
        case "trails":
          if (this.setup.getSm().isSetupTrail(p)) {
            TrailSetup trailSetup = this.setup.getSm().getSetupTrail(p);
            this.setup.getSem().createTrailMenu(p, trailSetup);
            return true;
          } 
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          namett = args[1];
          tts = new TrailSetup(p, namett);
          this.setup.getSm().setSetupTrail(p, tts);
          this.setup.getSem().createTrailMenu(p, tts);
          p.sendMessage(this.plugin.getLang().get(p, "setup.trails.created").replaceAll("<name>", tts.getName()));
          return false;
        case "taunts":
          if (this.setup.getSm().isSetupTaunt(p)) {
            TauntSetup tauntSetup = this.setup.getSm().getSetupTaunt(p);
            this.setup.getSem().createTauntMenu(p, tauntSetup);
            return true;
          } 
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          namet = args[1];
          ts = new TauntSetup(this.plugin, p, namet);
          this.setup.getSm().setSetupTaunt(p, ts);
          this.setup.getSem().createTauntMenu(p, ts);
          p.sendMessage(this.plugin.getLang().get(p, "setup.taunts.created").replaceAll("<name>", ts.getName()));
          return false;
        case "kits":
          if (this.setup.getSm().isSetupKit(p)) {
            KitSetup kitSetup = this.setup.getSm().getSetupKit(p);
            this.setup.getSem().createKitMenu(p, kitSetup);
            return true;
          } 
          if (args.length < 2) {
            sendHelp((CommandSender)p);
            return true;
          } 
          namek = args[1];
          ks = new KitSetup(this.plugin, p, namek);
          this.setup.getSm().setSetupKit(p, ks);
          this.setup.getSem().createKitMenu(p, ks);
          p.sendMessage(this.plugin.getLang().get(p, "setup.kits.created").replaceAll("<name>", ks.getName()));
          return false;
        case "chests":
          if (this.setup.getSm().isSetupChest(p)) {
            ChestSetup chestSetup = this.setup.getSm().getSetupChest(p);
            this.setup.getSem().createSetupChestTypeMenu(p, chestSetup);
            return true;
          } 
          xtLxhm8uARzmqKMotKKjcaF9dvAmNvYR5nuFtc5Afkt
          return false;
        case "glass":
          if (this.setup.getSm().isSetupGlass(p)) {
            GlassSetup glassSetup = this.setup.getSm().getSetupGlass(p);
            this.setup.getSem().createGlassMenu(p, glassSetup);
            return true;
          } 
          if (args.length < 4) {
            sendHelp((CommandSender)p);
            return true;
          } 
          nameg = args[1];
          schematicg = args[2].replaceAll(".schematic", "").replaceAll(".schem", "");
          cleag = args[3].replaceAll(".schematic", "").replaceAll(".schem", "");
          if (!Utils.existsFile(schematicg)) {
            p.sendMessage(this.plugin.getLang().get(p, "setup.noSchema"));
            return true;
          } 
          gs = new GlassSetup(p, nameg, schematicg, cleag);
          this.setup.getSm().setSetupGlass(p, gs);
          this.setup.getSem().createGlassMenu(p, gs);
          p.sendMessage(this.plugin.getLang().get(p, "setup.glass.created").replaceAll("<name>", gs.getName()).replaceAll("<schematic>", schematicg).replaceAll("<clear>", cleag));
          return false;
        case "setmainlobby":
          this.plugin.getConfig().set("mainLobby", Utils.getLocationString(p.getLocation()));
          this.plugin.saveConfig();
          this.plugin.reloadConfig();
          this.plugin.loadMainLobby();
          p.sendMessage(this.plugin.getLang().get(p, "setup.setMainLobby"));
          return false;
        case "inventory":
          if (args.length < 2) {
            sendInventories(p);
            return true;
          } 
          switch (args[1].toLowerCase()) {
            case "lobby":
            case "chest":
            case "health":
            case "projectile":
            case "time":
            case "final":
            case "votes":
            case "playagain":
            case "options":
            case "players":
            case "kitsperks":
            case "balloonsselector":
            case "glassselector":
            case "tauntsselector":
            case "trailsselector":
            case "partingselector":
            case "killsoundsselector":
            case "killeffectsselector":
            case "wineffectsselector":
            case "windancesselector":
            case "gamesoloselector":
            case "gameteamselector":
            case "gamerankedselector":
            case "gameallselector":
            case "kitselector":
            case "soulwellmenu":
              inventory = this.plugin.getUim().getMenus(args[1].toLowerCase());
              this.plugin.getUim().openInventory(p, inventory);
              this.setup.getSm().setSetupInventory(p, inventory);
              return false;
            case "mainparty":
            case "partymember":
            case "partylist":
              if (!this.plugin.getIjm().isParty()) {
                p.sendMessage(this.plugin.getLang().get("injections.party"));
                return true;
              } 
              inventory = this.plugin.getUim().getMenus(args[1].toLowerCase());
              this.plugin.getUim().openInventory(p, inventory);
              this.setup.getSm().setSetupInventory(p, inventory);
              return false;
          } 
          sendInventories(p);
          return false;
        case "settop":
          if (args.length < 2) {
            sendHelp(sender);
            return true;
          } 
          switch (args[1].toLowerCase()) {
            case "elo":
            case "kills":
            case "wins":
            case "deaths":
            case "coins":
              n = args[1].toLowerCase();
              generic = n.substring(0, 1).toUpperCase() + n.substring(1).toLowerCase();
              this.plugin.getConfig().set("top" + generic, Utils.getLocationString(p.getLocation()));
              this.plugin.saveConfig();
              this.plugin.reloadConfig();
              this.plugin.loadMainLobby();
              this.plugin.getTop().createTops();
              p.sendMessage(this.plugin.getLang().get(p, "setup.setTop" + generic));
              break;
          } 
          return false;
      } 
      sendHelp(sender);
    } else {
      if (args.length < 1) {
        sendHelp(sender);
        return true;
      } 
      if ("reload".equalsIgnoreCase(args[0])) {
        if (args.length == 1) {
          this.plugin.reload();
          sender.sendMessage(this.plugin.getLang().get("setup.reload"));
          return true;
        } 
        switch (args[1].toLowerCase()) {
          case "lang":
            this.plugin.reloadLang();
            sender.sendMessage(this.plugin.getLang().get("setup.reloadLang"));
            return false;
          case "config":
            this.plugin.reload();
            sender.sendMessage(this.plugin.getLang().get("setup.reload"));
            return false;
        } 
        sendHelp(sender);
      } 
    } 
    return false;
  }
  
  private void sendInventories(Player p) {
    p.sendMessage("available menus are:");
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
    p.sendMessage("- );
  }
  
  private void sendHelp(CommandSender s) {
    s.sendMessage("  + this.plugin.getDescription().getVersion() + "  );
    s.sendMessage("      );
    s.sendMessage("Commands");
    (new FancyMessage("create <name> a new arena.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws create ").build().send(s);
    (new FancyMessage("edit <name> arena.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws edit ").build().send(s);
    (new FancyMessage("delete <name> this arena.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws delete ").build().send(s);
    (new FancyMessage("clone <name> <newName> this arena.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws clone ").build().send(s);
    s.sendMessage("      );
    s.sendMessage("Commands");
    (new FancyMessage("glass <name> <schematic> <clear> a new glass.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws glass ").build().send(s);
    (new FancyMessage("taunts <name> a new taunt.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws taunts ").build().send(s);
    (new FancyMessage("kits <name> a new kit.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws kits ").build().send(s);
    (new FancyMessage("balloons <name> a new balloon.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws balloons ").build().send(s);
    (new FancyMessage("trails <name> a new trail.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws trails ").build().send(s);
    (new FancyMessage("killsounds <name> a new killsound.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws killsounds ").build().send(s);
    (new FancyMessage("parting <name> a new parting.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws parting ").build().send(s);
    s.sendMessage("      );
    s.sendMessage("Commands");
    (new FancyMessage("createchest <name> chest type.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws createchest  ").build().send(s);
    (new FancyMessage("chests chests.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws chests").build().send(s);
    (new FancyMessage("rewards on setup of soulwell/cubelets rewards.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws rewards").build().send(s);
    (new FancyMessage("setupblock cubelets/soulwell  on setup of cubelet/soulwell block.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws setupblock ").build().send(s);
    (new FancyMessage("settop kills/wins/deaths/coins/elo tops locations.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws settop ").build().send(s);
    (new FancyMessage("setpreview <type> new location preview.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws setpreview ").build().send(s);
    (new FancyMessage("setmainlobby the main lobby.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws setmainlobby").build().send(s);
    (new FancyMessage("reload [lang/config] the plugin.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws reload ").build().send(s);
    (new FancyMessage("inventory <type> a inventory.")).setHover(HoverEvent.Action.SHOW_TEXT, "to execute!").setClick(ClickEvent.Action.SUGGEST_COMMAND, "/sws inventory ").build().send(s);
    s.sendMessage(");
  }
}

El error se origina desde aquí cuando uso /sws setupblock cubelets (cabe recalcar que este codigo donde se ejecuta el comando es de una dependencia del plugin principal) 

package io.github.Leonardo0013YT.UltraSkyWars;

import com.google.gson.Gson;
import io.github.Leonardo0013YT.UltraSkyWars.cmds.LeaveCMD;
import io.github.Leonardo0013YT.UltraSkyWars.cmds.SkyWarsCMD;
import io.github.Leonardo0013YT.UltraSkyWars.config.Settings;
import io.github.Leonardo0013YT.UltraSkyWars.controllers.VersionController;
import io.github.Leonardo0013YT.UltraSkyWars.controllers.WorldController;
import io.github.Leonardo0013YT.UltraSkyWars.data.MongoDBDatabase;
import io.github.Leonardo0013YT.UltraSkyWars.data.MySQLDatabase;
import io.github.Leonardo0013YT.UltraSkyWars.fanciful.FancyMessage;
import io.github.Leonardo0013YT.UltraSkyWars.interfaces.Database;
import io.github.Leonardo0013YT.UltraSkyWars.listeners.GeneralListener;
import io.github.Leonardo0013YT.UltraSkyWars.listeners.LapisListener;
import io.github.Leonardo0013YT.UltraSkyWars.listeners.MenuListener;
import io.github.Leonardo0013YT.UltraSkyWars.listeners.PlayerListener;
import io.github.Leonardo0013YT.UltraSkyWars.listeners.SpecialListener;
import io.github.Leonardo0013YT.UltraSkyWars.listeners.SpectatorListener;
import io.github.Leonardo0013YT.UltraSkyWars.listeners.WorldListener;
import io.github.Leonardo0013YT.UltraSkyWars.managers.AddonManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.ChestManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.ConfigManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.CosmeticManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.GameManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.ItemManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.KitManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.LevelManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.ModuleManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.MultiplierManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.ScoreboardManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.ShopManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.TaggedManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.TaskManager;
import io.github.Leonardo0013YT.UltraSkyWars.managers.TopManager;
import io.github.Leonardo0013YT.UltraSkyWars.menus.GameMenu;
import io.github.Leonardo0013YT.UltraSkyWars.menus.UltraInventoryMenu;
import io.github.Leonardo0013YT.UltraSkyWars.migrators.SkyWarsMigrator;
import io.github.Leonardo0013YT.UltraSkyWars.migrators.SkyWarsXMigrator;
import io.github.Leonardo0013YT.UltraSkyWars.placeholders.MVdWPlaceholders;
import io.github.Leonardo0013YT.UltraSkyWars.placeholders.Placeholders;
import io.github.Leonardo0013YT.UltraSkyWars.superclass.Game;
import io.github.Leonardo0013YT.UltraSkyWars.utils.DependUtils;
import io.github.Leonardo0013YT.UltraSkyWars.utils.MetricsLite;
import io.github.Leonardo0013YT.UltraSkyWars.utils.Randomizer;
import io.github.Leonardo0013YT.UltraSkyWars.utils.Utils;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.UUID;
import net.md_5.bungee.api.chat.ClickEvent;
import net.md_5.bungee.api.chat.HoverEvent;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.command.CommandExecutor;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;

public class UltraSkyWars extends JavaPlugin {
  private static final Gson gson = new Gson();
  
  private static UltraSkyWars instance;
  
  private final ArrayList<Entity> entities = new ArrayList<>();
  
  private Settings sounds;
  
  private Settings chestType;
  
  private Settings migrators;
  
  private Settings join;
  
  private Settings arenas;
  
  private Settings lang;
  
  private Settings menus;
  
  private Settings chests;
  
  private Settings balloon;
  
  private Settings glass;
  
  private Settings killeffect;
  
  private Settings killsound;
  
  private Settings kits;
  
  private Settings parting;
  
  private Settings taunt;
  
  private Settings trail;
  
  private Settings windance;
  
  private Settings wineffect;
  
  private Settings levels;
  
  private Settings rewards;
  
  private ItemManager im;
  
  private ConfigManager cm;
  
  private UltraInventoryMenu uim;
  
  private WorldController wc;
  
  private VersionController vc;
  
  private GameManager gm;
  
  private KitManager km;
  
  private Location mainLobby;
  
  private Location topKills;
  
  private Location topWins;
  
  private Location topDeaths;
  
  private Location topCoins;
  
  private Location topElo;
  
  private Database db;
  
  private TaggedManager tgm;
  
  private ScoreboardManager sb;
  
  private TopManager top;
  
  private MultiplierManager mm;
  
  private AddonManager adm;
  
  private ShopManager shm;
  
  private LevelManager lvl;
  
  private GameMenu gem;
  
  private DependUtils du;
  
  private TaskManager tsm;
  
  private ModuleManager ijm;
  
  private ChestManager ctm;
  
  private CosmeticManager cos;
  
  private Randomizer randomizer;
  
  private boolean debugMode;
  
  public ArrayList<Entity> getEntities() {
    return this.entities;
  }
  
  public Settings getSounds() {
    return this.sounds;
  }
  
  public Settings getChestType() {
    return this.chestType;
  }
  
  public Settings getMigrators() {
    return this.migrators;
  }
  
  public Settings getJoin() {
    return this.join;
  }
  
  public Settings getArenas() {
    return this.arenas;
  }
  
  public Settings getLang() {
    return this.lang;
  }
  
  public Settings getMenus() {
    return this.menus;
  }
  
  public Settings getChests() {
    return this.chests;
  }
  
  public Settings getBalloon() {
    return this.balloon;
  }
  
  public Settings getGlass() {
    return this.glass;
  }
  
  public Settings getKilleffect() {
    return this.killeffect;
  }
  
  public Settings getKillsound() {
    return this.killsound;
  }
  
  public Settings getKits() {
    return this.kits;
  }
  
  public Settings getParting() {
    return this.parting;
  }
  
  public Settings getTaunt() {
    return this.taunt;
  }
  
  public Settings getTrail() {
    return this.trail;
  }
  
  public Settings getWindance() {
    return this.windance;
  }
  
  public Settings getWineffect() {
    return this.wineffect;
  }
  
  public Settings getLevels() {
    return this.levels;
  }
  
  public Settings getRewards() {
    return this.rewards;
  }
  
  public ItemManager getIm() {
    return this.im;
  }
  
  public ConfigManager getCm() {
    return this.cm;
  }
  
  public UltraInventoryMenu getUim() {
    return this.uim;
  }
  
  public WorldController getWc() {
    return this.wc;
  }
  
  public VersionController getVc() {
    return this.vc;
  }
  
  public GameManager getGm() {
    return this.gm;
  }
  
  public KitManager getKm() {
    return this.km;
  }
  
  public Location getMainLobby() {
    return this.mainLobby;
  }
  
  public Location getTopKills() {
    return this.topKills;
  }
  
  public Location getTopWins() {
    return this.topWins;
  }
  
  public Location getTopDeaths() {
    return this.topDeaths;
  }
  
  public Location getTopCoins() {
    return this.topCoins;
  }
  
  public Location getTopElo() {
    return this.topElo;
  }
  
  public Database getDb() {
    return this.db;
  }
  
  public TaggedManager getTgm() {
    return this.tgm;
  }
  
  public ScoreboardManager getSb() {
    return this.sb;
  }
  
  public TopManager getTop() {
    return this.top;
  }
  
  public MultiplierManager getMm() {
    return this.mm;
  }
  
  public AddonManager getAdm() {
    return this.adm;
  }
  
  public ShopManager getShm() {
    return this.shm;
  }
  
  public LevelManager getLvl() {
    return this.lvl;
  }
  
  public GameMenu getGem() {
    return this.gem;
  }
  
  public DependUtils getDu() {
    return this.du;
  }
  
  public TaskManager getTsm() {
    return this.tsm;
  }
  
  public ModuleManager getIjm() {
    return this.ijm;
  }
  
  public ChestManager getCtm() {
    return this.ctm;
  }
  
  public CosmeticManager getCos() {
    return this.cos;
  }
  
  public Randomizer getRandomizer() {
    return this.randomizer;
  }
  
  private boolean stop = false;
  
  public boolean isDebugMode() {
    return this.debugMode;
  }
  
  public boolean isStop() {
    return this.stop;
  }
  
  private boolean disabled = false;
  
  public void setDisabled(boolean paramBoolean) {
    this.disabled = paramBoolean;
  }
  
  public boolean isDisabled() {
    return this.disabled;
  }
  
  public static UltraSkyWars get() {
    return instance;
  }
  
  public static Gson getGson() {
    return gson;
  }
  
  public void onEnable() {
    loadConfig0();
    instance = this;
    if (!getServer().getPluginManager().isPluginEnabled("WorldEdit") || !getServer().getPluginManager().isPluginEnabled("FastAsyncWorldEdit")) {
      Bukkit.getConsoleSender().sendMessage("Plugin );
      Bukkit.getScheduler().cancelTasks((Plugin)this);
      Bukkit.getPluginManager().disablePlugin((Plugin)this);
      return;
    } 
    getConfig().options().copyDefaults(true);
    this.vc = new VersionController(this);
    saveConfig();
    loadMainLobby();
    updateDirectories();
    this.debugMode = getConfig().getBoolean("debugMode");
    this.du = new DependUtils(this);
    this.du.loadDepends();
    if (getConfig().getBoolean("mongodb.enabled")) {
      this.db = (Database)new MongoDBDatabase(this);
    } else {
      this.db = (Database)new MySQLDatabase(this);
    } 
    this.balloon = new Settings("cosmetics/balloon", false);
    this.glass = new Settings("cosmetics/glass", false);
    this.killeffect = new Settings("cosmetics/killeffect", true);
    this.killsound = new Settings("cosmetics/killsound", false);
    this.parting = new Settings("cosmetics/parting", false);
    this.taunt = new Settings("cosmetics/taunt", false);
    this.trail = new Settings("cosmetics/trail", false);
    this.windance = new Settings("cosmetics/windance", true);
    this.wineffect = new Settings("cosmetics/wineffect", true);
    this.chestType = new Settings("chestType", false);
    this.migrators = new Settings("migrators", true);
    this.join = new Settings("customjoin", false);
    this.arenas = new Settings("arenas", false);
    this.lang = new Settings("lang", true, true);
    this.menus = new Settings("menus", false);
    this.chests = new Settings("chests", false);
    this.kits = new Settings("kits", false);
    this.levels = new Settings("levels", false);
    this.rewards = new Settings("rewards", false);
    this.sounds = new Settings("sounds", true);
    this.cm = new ConfigManager();
    this.im = new ItemManager();
    this.adm = new AddonManager();
    this.randomizer = new Randomizer();
    this.cos = new CosmeticManager(this);
    this.cos.reload();
    this.ctm = new ChestManager();
    this.uim = new UltraInventoryMenu(this);
    this.uim.loadMenus();
    this.ijm = new ModuleManager();
    this.ijm.loadWEInjection();
    this.adm.reload();
    this.wc = new WorldController();
    this.gm = new GameManager(this);
    this.gem = new GameMenu(this);
    this.km = new KitManager(this);
    this.km.loadKits();
    this.sb = new ScoreboardManager();
    this.tgm = new TaggedManager();
    this.top = new TopManager();
    this.mm = new MultiplierManager();
    this.lvl = new LevelManager();
    this.shm = new ShopManager();
    this.gm.reload();
    getCommand("sw").setExecutor((CommandExecutor)new SkyWarsCMD(this));
    if (getConfig().getBoolean("leaveCMD"))
      getCommand("leave").setExecutor((CommandExecutor)new LeaveCMD(this)); 
    getServer().getPluginManager().registerEvents((Listener)new PlayerListener(), (Plugin)this);
    getServer().getPluginManager().registerEvents((Listener)new MenuListener(), (Plugin)this);
    getServer().getPluginManager().registerEvents((Listener)new SpecialListener(), (Plugin)this);
    getServer().getPluginManager().registerEvents((Listener)new SpectatorListener(this), (Plugin)this);
    getServer().getPluginManager().registerEvents((Listener)new WorldListener(), (Plugin)this);
    getServer().getPluginManager().registerEvents((Listener)new GeneralListener(), (Plugin)this);
    if (this.cm.isAutoLapiz())
      getServer().getPluginManager().registerEvents((Listener)new LapisListener(), (Plugin)this); 
    if (getServer().getPluginManager().isPluginEnabled("PlaceholderAPI"))
      (new Placeholders()).register(); 
    if (getServer().getPluginManager().isPluginEnabled("MVdWPlaceholderAPI"))
      (new MVdWPlaceholders()).register(); 
    this.tsm = new TaskManager(this);
    saveSchematics();
    new SkyWarsMigrator(this);
    new SkyWarsXMigrator(this);
    (new BukkitRunnable() {
        public void run() {
          UltraSkyWars.this.ijm.loadInjections();
        }
      }).runTaskLater((Plugin)this, 30L);
    getDb().loadTopKills();
    getDb().loadTopWins();
    getDb().loadTopDeaths();
    getDb().loadTopCoins();
    getDb().loadTopElo();
    getDb().loadMultipliers(paramBoolean -> {
        
        });
    new MetricsLite((Plugin)this, 9620);
  }
  
  public void loadMainLobby() {
    if (getConfig().getString("mainLobby") != null)
      this.mainLobby = Utils.getStringLocation(getConfig().getString("mainLobby")); 
    if (getConfig().getString("topKills") != null)
      this.topKills = Utils.getStringLocation(getConfig().getString("topKills")); 
    if (getConfig().getString("topWins") != null)
      this.topWins = Utils.getStringLocation(getConfig().getString("topWins")); 
    if (getConfig().getString("topDeaths") != null)
      this.topDeaths = Utils.getStringLocation(getConfig().getString("topDeaths")); 
    if (getConfig().getString("topCoins") != null)
      this.topCoins = Utils.getStringLocation(getConfig().getString("topCoins")); 
    if (getConfig().getString("topElo") != null)
      this.topElo = Utils.getStringLocation(getConfig().getString("topElo")); 
  }
  
  public void onDisable() {
    if (this.disabled)
      return; 
    if (this.top != null)
      getTop().remove(); 
    this.stop = true;
    getServer().getOnlinePlayers().forEach(paramPlayer -> {
          getCos().remove(paramPlayer);
          getGm().removePlayerAllGame(paramPlayer);
        });
    if (!getDb().getPlayers().keySet().isEmpty()) {
      ArrayList arrayList = new ArrayList(getDb().getPlayers().keySet());
      for (UUID uUID : arrayList)
        getDb().savePlayerSync(uUID); 
    } 
    for (String str : getGm().getWorlds().keySet())
      getWc().deleteWorld(str); 
    File file = new File(Bukkit.getWorldContainer() + "/plugins/FastAsyncWorldEdit/clipboard");
    getWc().deleteDirectory(file);
    this.db.close();
  }
  
  public void broadcastGame(Game paramGame) {
    if (!getCm().isBroadcastGame())
      return; 
    FancyMessage fancyMessage = (new FancyMessage(getLang().get(null, "fancy.message").replaceAll("<game>", paramGame.getName()))).addMsg(getLang().get(null, "fancy.click")).setClick(ClickEvent.Action.RUN_COMMAND, "/sw join " + paramGame.getGameType().toLowerCase() + " " + paramGame.getName()).setHover(HoverEvent.Action.SHOW_TEXT, getLang().get(null, "fancy.hover")).build();
    for (Player player : Bukkit.getOnlinePlayers()) {
      if (getGm().isPlayerInGame(player))
        continue; 
      fancyMessage.send(player);
    } 
  }
  
  public void saveSchematics() {
    saveResource("clearGlass.schematic", true);
    saveResource("glass.schematic", true);
    File file = new File(Bukkit.getWorldContainer() + "/plugins/WorldEdit/schematics");
    if (!file.exists())
      file.mkdirs(); 
    copy(getDataFolder().getAbsolutePath() + "/clearGlass.schematic", Bukkit.getWorldContainer() + "/plugins/WorldEdit/schematics/clearGlass.schematic");
    copy(getDataFolder().getAbsolutePath() + "/glass.schematic", Bukkit.getWorldContainer() + "/plugins/WorldEdit/schematics/glass.schematic");
    try {
      Files.delete(Paths.get(getDataFolder().getAbsolutePath() + "/clearGlass.schematic", new String[0]));
      Files.delete(Paths.get(getDataFolder().getAbsolutePath() + "/glass.schematic", new String[0]));
    } catch (IOException iOException) {
      iOException.printStackTrace();
    } 
  }
  
  public void sendDebugMessage(String... paramVarArgs) {
    if (this.debugMode)
      for (String str : paramVarArgs)
        Bukkit.getConsoleSender().sendMessage("Debug] + str);  
  }
  
  public void copy(String paramString1, String paramString2) {
    try {
      BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(paramString1));
      try {
        BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(paramString2));
        try {
          byte[] arrayOfByte = new byte[1024];
          int i;
          while ((i = bufferedInputStream.read(arrayOfByte)) > 0) {
            bufferedOutputStream.write(arrayOfByte, 0, i);
            bufferedOutputStream.flush();
          } 
          bufferedOutputStream.close();
        } catch (Throwable throwable) {
          try {
            bufferedOutputStream.close();
          } catch (Throwable throwable1) {
            throwable.addSuppressed(throwable1);
          } 
          throw throwable;
        } 
        bufferedInputStream.close();
      } catch (Throwable throwable) {
        try {
          bufferedInputStream.close();
        } catch (Throwable throwable1) {
          throwable.addSuppressed(throwable1);
        } 
        throw throwable;
      } 
    } catch (IOException iOException) {
      iOException.printStackTrace();
    } 
  }
  
  public boolean isBungeeMode() {
    return false;
  }
  
  public void reload() {
    reloadConfig();
    this.arenas.reload();
    this.lang.reload();
    this.chests.reload();
    this.balloon.reload();
    this.glass.reload();
    this.rewards.reload();
    this.killeffect.reload();
    this.killsound.reload();
    this.kits.reload();
    this.menus.reload();
    this.levels.reload();
    this.parting.reload();
    this.taunt.reload();
    this.trail.reload();
    this.windance.reload();
    this.join.reload();
    this.wineffect.reload();
    this.sb.reload();
    this.adm.remove();
    this.uim.loadMenus();
    this.ctm.reload();
    this.im.reload();
    this.adm.reload();
    this.top.createTops();
    this.km.loadKits();
    this.cm.reload();
    this.ijm.reload();
  }
  
  public void sendToServer(Player paramPlayer, String paramString) {}
  
  public void reloadLang() {
    this.lang.reload();
  }
  
  public void sendLogMessage(String paramString) {
    Bukkit.getConsoleSender().sendMessage("" + paramString);
  }
  
  public void sendLogMessage(String... paramVarArgs) {
    for (String str : paramVarArgs)
      Bukkit.getConsoleSender().sendMessage("+ str); 
  }
  
  public void updateDirectories() {
    try {
      File file = new File(getDataFolder(), "cosmetics");
      if (!file.exists()) {
        file.mkdirs();
        File file1 = new File(getDataFolder(), "balloon.yml");
        if (file1.exists()) {
          File file10 = new File(file, "balloon.yml");
          Files.copy(file1.toPath(), file10.toPath(), new java.nio.file.CopyOption[0]);
          file1.delete();
        } 
        File file2 = new File(getDataFolder(), "glass.yml");
        if (file2.exists()) {
          File file10 = new File(file, "glass.yml");
          Files.copy(file2.toPath(), file10.toPath(), new java.nio.file.CopyOption[0]);
          file2.delete();
        } 
        File file3 = new File(getDataFolder(), "killeffect.yml");
        if (file3.exists()) {
          File file10 = new File(file, "killeffect.yml");
          Files.copy(file3.toPath(), file10.toPath(), new java.nio.file.CopyOption[0]);
          file3.delete();
        } 
        File file4 = new File(getDataFolder(), "killsound.yml");
        if (file4.exists()) {
          File file10 = new File(file, "killsound.yml");
          Files.copy(file4.toPath(), file10.toPath(), new java.nio.file.CopyOption[0]);
          file4.delete();
        } 
        File file5 = new File(getDataFolder(), "parting.yml");
        if (file5.exists()) {
          File file10 = new File(file, "parting.yml");
          Files.copy(file5.toPath(), file10.toPath(), new java.nio.file.CopyOption[0]);
          file5.delete();
        } 
        File file6 = new File(getDataFolder(), "taunt.yml");
        if (file6.exists()) {
          File file10 = new File(file, "taunt.yml");
          Files.copy(file6.toPath(), file10.toPath(), new java.nio.file.CopyOption[0]);
          file6.delete();
        } 
        File file7 = new File(getDataFolder(), "trail.yml");
        if (file7.exists()) {
          File file10 = new File(file, "trail.yml");
          Files.copy(file7.toPath(), file10.toPath(), new java.nio.file.CopyOption[0]);
          file7.delete();
        } 
        File file8 = new File(getDataFolder(), "windance.yml");
        if (file8.exists()) {
          File file10 = new File(file, "windance.yml");
          Files.copy(file8.toPath(), file10.toPath(), new java.nio.file.CopyOption[0]);
          file8.delete();
        } 
        File file9 = new File(getDataFolder(), "wineffect.yml");
        if (file9.exists()) {
          File file10 = new File(file, "wineffect.yml");
          Files.copy(file9.toPath(), file10.toPath(), new java.nio.file.CopyOption[0]);
          file9.delete();
        } 
      } 
    } catch (IOException iOException) {
      iOException.printStackTrace();
    } 
  }
}
Envio esto porque el error parece estar en getIjm() que se menciona en esta clase Main del plugin principal que agarra el valor de otra instancia de otra clase ModuleManager que el código es el siguiente

package io.github.Leonardo0013YT.UltraSkyWars.managers;

import io.github.Leonardo0013YT.UltraSkyWars.UltraSkyWars;
import io.github.Leonardo0013YT.UltraSkyWars.modules.SpecialItems.InjectionSpecialItems;
import io.github.Leonardo0013YT.UltraSkyWars.modules.challenges.InjectionChallenges;
import io.github.Leonardo0013YT.UltraSkyWars.modules.cubelets.InjectionCubelets;
import io.github.Leonardo0013YT.UltraSkyWars.modules.lprotection.InjectionLProtection;
import io.github.Leonardo0013YT.UltraSkyWars.modules.mobfriends.InjectionMobFriends;
import io.github.Leonardo0013YT.UltraSkyWars.modules.parties.InjectionParty;
import io.github.Leonardo0013YT.UltraSkyWars.modules.perks.InjectionPerks;
import io.github.Leonardo0013YT.UltraSkyWars.modules.pwt.InjectionPWT;
import io.github.Leonardo0013YT.UltraSkyWars.modules.ranks.InjectionEloRank;
import io.github.Leonardo0013YT.UltraSkyWars.modules.signs.InjectionSigns;
import io.github.Leonardo0013YT.UltraSkyWars.modules.soulwell.InjectionSoulWell;
import io.github.Leonardo0013YT.UltraSkyWars.superclass.Game;
import java.io.File;
import java.lang.reflect.Method;
import java.net.URL;
import org.bukkit.Bukkit;
import org.bukkit.plugin.Plugin;

public class ModuleManager {
  private InjectionEloRank eloRank;
  
  private InjectionPerks perks;
  
  private InjectionCubelets cubelets;
  
  private InjectionSigns signs;
  
  private InjectionMobFriends mobFriends;
  
  private InjectionPWT pwts;
  
  private InjectionLProtection lProtection;
  
  private InjectionChallenges challenges;
  
  private InjectionParty party;
  
  private InjectionSoulWell soulwell;
  
  private InjectionSpecialItems specialItems;
  
  public ModuleManager() {
    UltraSkyWars ultraSkyWars = UltraSkyWars.get();
    File file = new File(ultraSkyWars.getDataFolder(), "worldedit");
    if (!file.exists())
      file.mkdirs(); 
  }
  
  public void loadWEInjection() {
    File file1;
    UltraSkyWars ultraSkyWars = UltraSkyWars.get();
    File file2 = new File(ultraSkyWars.getDataFolder(), "worldedit");
    if (ultraSkyWars.getVc().is1_13to17()) {
      file1 = new File(file2, "UltraSkyWars-WENew.jar");
      ultraSkyWars.sendLogMessage("- 1.16 correctly!");
    } else {
      file1 = new File(file2, "UltraSkyWars-WEOld.jar");
      ultraSkyWars.sendLogMessage("- 1.12 correctly!");
    } 
    if (!file1.exists()) {
      ultraSkyWars.sendLogMessage(new String[] { "must put which version of WorldEdit Addon you'll be using,", "the UltraSkyWars-WEOld.jar injection for WorldEdit 1.8 through 1.12", "UltraSkyWars-WENew.jar for WorldEdit 1.13 through 1.15." });
      Bukkit.getScheduler().cancelTasks((Plugin)ultraSkyWars);
      Bukkit.getPluginManager().disablePlugin((Plugin)ultraSkyWars);
      ultraSkyWars.setDisabled(true);
      return;
    } 
    loadJarFile(file1);
  }
  
  public void loadInjections() {
    UltraSkyWars ultraSkyWars = UltraSkyWars.get();
    if (ultraSkyWars.getConfig().getBoolean("modules.specialitems")) {
      this.specialItems = new InjectionSpecialItems();
      this.specialItems.loadInjection(ultraSkyWars);
      ultraSkyWars.sendLogMessage("loaded correctly!");
    } 
    if (ultraSkyWars.getConfig().getBoolean("modules.challenges")) {
      this.challenges = new InjectionChallenges();
      this.challenges.loadInjection(ultraSkyWars);
      ultraSkyWars.sendLogMessage("loaded correctly!");
    } 
    if (ultraSkyWars.getConfig().getBoolean("modules.cubelets")) {
      this.cubelets = new InjectionCubelets();
      this.cubelets.loadInjection(ultraSkyWars);
      ultraSkyWars.sendLogMessage("loaded correctly!");
    } 
    if (ultraSkyWars.getConfig().getBoolean("modules.lobbyprotect")) {
      this.lProtection = new InjectionLProtection();
      this.lProtection.loadInjection(ultraSkyWars);
      ultraSkyWars.sendLogMessage("loaded correctly!");
    } 
    if (ultraSkyWars.getConfig().getBoolean("modules.mobfriends")) {
      this.mobFriends = new InjectionMobFriends();
      this.mobFriends.loadInjection(ultraSkyWars);
      ultraSkyWars.sendLogMessage("loaded correctly!");
    } 
    if (ultraSkyWars.getConfig().getBoolean("modules.parties")) {
      this.party = new InjectionParty();
      this.party.loadInjection(ultraSkyWars);
      ultraSkyWars.sendLogMessage("loaded correctly!");
    } 
    if (ultraSkyWars.getConfig().getBoolean("modules.perks")) {
      this.perks = new InjectionPerks();
      this.perks.loadInjection(ultraSkyWars);
      ultraSkyWars.sendLogMessage("loaded correctly!");
    } 
    if (ultraSkyWars.getConfig().getBoolean("modules.perworldtab")) {
      this.pwts = new InjectionPWT();
      this.pwts.loadInjection(ultraSkyWars);
      ultraSkyWars.sendLogMessage("World Tabloaded correctly!");
    } 
    if (ultraSkyWars.getConfig().getBoolean("modules.eloranks")) {
      this.eloRank = new InjectionEloRank();
      this.eloRank.loadInjection(ultraSkyWars);
      if (ultraSkyWars.getServer().getPluginManager().isPluginEnabled("PlaceholderAPI"))
        this.eloRank.loadPlaceholders(); 
      if (ultraSkyWars.getServer().getPluginManager().isPluginEnabled("MVdWPlaceholderAPI"))
        this.eloRank.loadMVdWPlaceholders(); 
      ultraSkyWars.sendLogMessage("loaded correctly!");
    } 
    if (ultraSkyWars.getConfig().getBoolean("modules.signs")) {
      this.signs = new InjectionSigns();
      this.signs.loadInjection(ultraSkyWars);
      ultraSkyWars.getGm().getGames().values().forEach(Game::updateSign);
      ultraSkyWars.sendLogMessage("loaded correctly!");
    } 
    if (ultraSkyWars.getConfig().getBoolean("modules.soulwell")) {
      this.soulwell = new InjectionSoulWell();
      this.soulwell.loadInjection(ultraSkyWars);
      ultraSkyWars.sendLogMessage("loaded correctly!");
    } 
    ultraSkyWars.getCm().reloadInjections();
  }
  
  public void reload() {
    UltraSkyWars ultraSkyWars = UltraSkyWars.get();
    File file1 = new File(ultraSkyWars.getDataFolder(), "worldedit");
    File file2 = new File(file1, "UltraSkyWars-SpecialItems.jar");
    if (this.specialItems == null) {
      if (file2.exists()) {
        loadJarFile(file2);
        this.specialItems = new InjectionSpecialItems();
        this.specialItems.loadInjection(ultraSkyWars);
        ultraSkyWars.sendLogMessage("loaded correctly!");
      } 
    } else if (!file2.exists()) {
      this.specialItems = null;
      ultraSkyWars.sendLogMessage("unloaded correctly!");
    } else {
      this.specialItems.reload();
    } 
    File file3 = new File(file1, "UltraSkyWars-SoulWell.jar");
    if (this.soulwell == null) {
      if (file3.exists()) {
        loadJarFile(file3);
        this.soulwell = new InjectionSoulWell();
        this.soulwell.loadInjection(ultraSkyWars);
        ultraSkyWars.sendLogMessage("loaded correctly!");
      } 
    } else if (!file3.exists()) {
      this.soulwell = null;
      ultraSkyWars.sendLogMessage("unloaded correctly!");
    } else {
      this.soulwell.reload();
    } 
    File file4 = new File(file1, "UltraSkyWars-Parties.jar");
    if (this.party == null) {
      if (file4.exists()) {
        loadJarFile(file4);
        this.party = new InjectionParty();
        this.party.loadInjection(ultraSkyWars);
        ultraSkyWars.sendLogMessage("loaded correctly!");
      } 
    } else if (!file4.exists()) {
      this.party = null;
      ultraSkyWars.sendLogMessage("unloaded correctly!");
    } else {
      this.party.reload();
    } 
    File file5 = new File(file1, "UltraSkyWars-Challenges.jar");
    if (this.challenges == null) {
      if (file5.exists()) {
        loadJarFile(file5);
        this.challenges = new InjectionChallenges();
        this.challenges.loadInjection(ultraSkyWars);
        ultraSkyWars.sendLogMessage("loaded correctly!");
      } 
    } else if (!file5.exists()) {
      this.challenges = null;
      ultraSkyWars.sendLogMessage("unloaded correctly!");
    } else {
      this.challenges.reload();
    } 
    File file6 = new File(file1, "UltraSkyWars-LobbyProtect.jar");
    if (this.lProtection == null) {
      if (file6.exists()) {
        loadJarFile(file6);
        this.lProtection = new InjectionLProtection();
        this.lProtection.loadInjection(ultraSkyWars);
        ultraSkyWars.sendLogMessage("loaded correctly!");
      } 
    } else if (!file6.exists()) {
      this.lProtection = null;
      ultraSkyWars.sendLogMessage("unloaded correctly!");
    } else {
      this.lProtection.reload();
    } 
    File file7 = new File(file1, "UltraSkyWars-PWT.jar");
    if (this.pwts == null) {
      if (file7.exists()) {
        loadJarFile(file7);
        this.pwts = new InjectionPWT();
        this.pwts.loadInjection(ultraSkyWars);
        ultraSkyWars.sendLogMessage("World Tabloaded correctly!");
      } 
    } else if (!file7.exists()) {
      this.pwts = null;
      ultraSkyWars.sendLogMessage("World Tabunloaded correctly!");
    } else {
      this.pwts.reload();
    } 
    File file8 = new File(file1, "UltraSkyWars-MobFriends.jar");
    if (this.mobFriends == null) {
      if (file8.exists()) {
        loadJarFile(file8);
        this.mobFriends = new InjectionMobFriends();
        this.mobFriends.loadInjection(ultraSkyWars);
        ultraSkyWars.sendLogMessage("loaded correctly!");
      } 
    } else if (!file8.exists()) {
      this.mobFriends = null;
      ultraSkyWars.sendLogMessage("unloaded correctly!");
    } else {
      this.mobFriends.reload();
    } 
    File file9 = new File(file1, "UltraSkyWars-Signs.jar");
    if (this.signs == null) {
      if (file9.exists()) {
        loadJarFile(file9);
        this.signs = new InjectionSigns();
        this.signs.loadInjection(ultraSkyWars);
        ultraSkyWars.getGm().getGames().values().forEach(Game::updateSign);
        ultraSkyWars.sendLogMessage("loaded correctly!");
      } 
    } else if (!file9.exists()) {
      this.signs = null;
      ultraSkyWars.sendLogMessage("unloaded correctly!");
    } else {
      this.signs.reload();
      ultraSkyWars.getGm().getGames().values().forEach(Game::updateSign);
    } 
    File file10 = new File(file1, "UltraSkyWars-EloRanks.jar");
    if (this.eloRank == null) {
      if (file10.exists()) {
        loadJarFile(file10);
        this.eloRank = new InjectionEloRank();
        this.eloRank.loadInjection(ultraSkyWars);
        ultraSkyWars.sendLogMessage("loaded correctly!");
      } 
    } else if (!file10.exists()) {
      this.eloRank = null;
      ultraSkyWars.sendLogMessage("unloaded correctly!");
    } else {
      this.eloRank.reload();
    } 
    File file11 = new File(file1, "UltraSkyWars-Perks.jar");
    if (this.perks == null) {
      if (file11.exists()) {
        loadJarFile(file11);
        this.perks = new InjectionPerks();
        this.perks.loadInjection(ultraSkyWars);
        ultraSkyWars.sendLogMessage("loaded correctly!");
      } 
    } else if (!file11.exists()) {
      this.perks = null;
      ultraSkyWars.sendLogMessage("unloaded correctly!");
    } else {
      this.perks.reload();
    } 
    File file12 = new File(file1, "UltraSkyWars-Cubelets.jar");
    if (this.cubelets == null) {
      if (file12.exists()) {
        loadJarFile(file12);
        this.cubelets = new InjectionCubelets();
        this.cubelets.loadInjection(ultraSkyWars);
        ultraSkyWars.sendLogMessage("loaded correctly!");
      } 
    } else if (!file12.exists()) {
      this.cubelets = null;
      ultraSkyWars.sendLogMessage("unloaded correctly!");
    } else {
      this.cubelets.reload();
    } 
    ultraSkyWars.getCm().reloadInjections();
  }
  
  public boolean isSoulWellInjection() {
    return (this.soulwell != null);
  }
  
  public boolean isEloRankInjection() {
    return (this.eloRank != null);
  }
  
  public boolean isPerksInjection() {
    return (this.perks != null);
  }
  
  public boolean isCubeletsInjection() {
    return (this.cubelets != null);
  }
  
  public boolean isSignsInjection() {
    return (this.signs != null);
  }
  
  public boolean isChallenges() {
    return (this.challenges != null);
  }
  
  public boolean isParty() {
    return (this.party != null);
  }
  
  public InjectionChallenges getChallenges() {
    return this.challenges;
  }
  
  public InjectionSigns getSigns() {
    return this.signs;
  }
  
  public InjectionCubelets getCubelets() {
    return this.cubelets;
  }
  
  public InjectionEloRank getEloRank() {
    return this.eloRank;
  }
  
  public InjectionPerks getPerks() {
    return this.perks;
  }
  
  public InjectionParty getParty() {
    return this.party;
  }
  
  public InjectionSoulWell getSoulwell() {
    return this.soulwell;
  }
  
  private void loadJarFile(File paramFile) {
    try {
      ClassLoader classLoader = getClass().getClassLoader();
      Class<?> clazz = classLoader.getClass();
      Method method = clazz.getSuperclass().getDeclaredMethod("addURL", new Class[] { URL.class });
      method.setAccessible(true);
      method.invoke(classLoader, new Object[] { paramFile.toURI().toURL() });
    } catch (NoSuchMethodException|java.net.MalformedURLException|java.lang.reflect.InvocationTargetException|IllegalAccessException noSuchMethodException) {
      noSuchMethodException.printStackTrace();
    } 
  }
}

Y por último la clase del registro del evento

package io.github.Leonardo0013YT.UltraSkyWars.modules.cubelets;

import io.github.Leonardo0013YT.UltraSkyWars.UltraSkyWars;
import io.github.Leonardo0013YT.UltraSkyWars.config.Settings;
import io.github.Leonardo0013YT.UltraSkyWars.interfaces.Injection;
import io.github.Leonardo0013YT.UltraSkyWars.modules.cubelets.listeners.CubeletsListener;
import io.github.Leonardo0013YT.UltraSkyWars.modules.cubelets.managers.CubeletsManager;
import java.util.ArrayList;
import org.bukkit.Bukkit;
import org.bukkit.entity.Entity;
import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;

public class InjectionCubelets implements Injection {
  private CubeletsManager cbm;
  
  private Settings cubelets;
  
  private ArrayList<Entity> entities = new ArrayList<>();
  
  public void loadInjection(UltraSkyWars paramUltraSkyWars) {
    this.cubelets = new Settings("modules/cubelets", true, false);
    this.cbm = new CubeletsManager(paramUltraSkyWars, this);
    Bukkit.getServer().getPluginManager().registerEvents((Listener)new CubeletsListener(paramUltraSkyWars, this), (Plugin)paramUltraSkyWars);
  }
  
  public void reload() {
    this.cubelets.reload();
    this.cbm.reload();
  }
  
  public void disable() {}
  
  public ArrayList<Entity> getEntities() {
    return this.entities;
  }
  
  public Settings getCubelets() {
    return this.cubelets;
  }
  
  public CubeletsManager getCbm() {
    return this.cbm;
  }
}