Not able to load a command

Discussion in 'Spigot Help' started by Proudyy, Aug 10, 2018.

  1. Console error:
    Code (Text):
        void loadCommands() {
            Bukkit.getPluginCommand("setspawn").setExecutor(new SetSpawn());
            Bukkit.getPluginCommand("spawn").setExecutor(new SpawnCommand());
            Bukkit.getPluginCommand("setnavigation").setExecutor(new SetNavigation(this));
            Bukkit.getPluginCommand("removenavigation").setExecutor(new RemoveNavigation(this));
    71:        Bukkit.getPluginCommand("removenavigations").setExecutor(new RemoveNavigations());
            Bukkit.getPluginCommand("renamenavigation").setExecutor(new RenameNavigation(this));
            Bukkit.getPluginCommand("navigationgui").setExecutor(new NavigationGui());
            Bukkit.getPluginCommand("buildmode").setExecutor(new BuildMode());
            Bukkit.getPluginCommand("system").setExecutor(new InfoCommands());
        }
    Complete main class on pastebin: https://pastebin.com/pawMwmAx
     
  2. Oh i found it.
    Previously my plugin.yml looked like that:
    But now i fixed it:
    name: System
    main: de.system.main.System
    version: 1.0
    author: Proudyy
    description: Das LobbySystem vom Server Prouzy.
    commands:
    setspawn:
    description: Setzt den Spawnpoint des Servers.
    spawn:
    description: Teleportiert dich zum Spawn.
    setnavigation:
    description: Erstellt einen Navigationspunkt.
    aliases: [setnav]
    removenavigation:
    description: Entfernt einen Navigationspunkt.
    aliases: [removenav]
    removenavigations:
    description: Entfernt alle Navigationspunkte.
    aliases: [removenavs]
    renamenavigation:
    description: Bennent einen Navigationspunkt um.
    aliases: [renamenav, renav]
    navigationgui:
    description: Bringt die Navigations-GUI zum Vorschein.
    aliases: [navgui]
    buildmode:
    description: Du begibst dich bzw. verlässt (in) den Abbaumodus.
    aliases: [build]
    system:
    description: Hilfe/Autor zum/des Plugin(s).
     
  3. Pretty stupid mistake tho xd