Could not load 'plugins\Dings.jar' in folder 'plugins'

Discussion in 'Plugin Development' started by xXDasFabiXx, Feb 6, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    xXDasFabiXx

    what can I do that works?
    console:
    Code:
    [15:42:41 ERROR]: Could not load 'plugins\Dings.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: name is not defined
            at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:898) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:232) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:159) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:292) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:739) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.Bukkit.reload(Bukkit.java:535) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_161]
    Caused by: java.lang.NullPointerException
            at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:891) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
            ... 15 more
    [15:42:41 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [15:42:41 INFO]: CONSOLE: Reload complete.
    plugin.yml:
    Code:
    Name: Dings2
    version: 1.1
    main: de.xxibafdasxx.dings.main.Main
    
    commands:
       Scoreboard:
          description: Scoreboard
    pl:
    Code:
    package de.xxibafdasxx.dings.Commands;
    
    import org.bukkit.Bukkit;
    import org.bukkit.entity.Player;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.Listener;
    import org.bukkit.event.player.PlayerJoinEvent;
    import org.bukkit.scoreboard.DisplaySlot;
    import org.bukkit.scoreboard.Objective;
    import org.bukkit.scoreboard.Scoreboard;
    
    public class ScoreboardJoinListener implements Listener {
    
        @EventHandler
        public void handlePlayerJoin(PlayerJoinEvent e) {
            Player p = e.getPlayer();
        
            Scoreboard board = Bukkit.getScoreboardManager().getNewScoreboard();
            Objective obj = board.registerNewObjective("abcd", "abcd");
            obj.setDisplaySlot(DisplaySlot.SIDEBAR);
            obj.setDisplayName("§6Willkommen auf Nexus-server.eu!");
            obj.getScore(" ").setScore(5);
            obj.getScore("Herzlich willkommen" + p.getName() + "!").setScore(4);
            obj.getScore(" ");
            obj.getScore("Viel Spaß!").setScore(3);
        
            p.setScoreboard(board);
        }
    
    }
     
  2. Offline

    timtower Ninja on the waves Moderator

    @xXDasFabiXx name in the plugin.yml should be lowercase
     
  3. Offline

    RunsWithShovels

    To build on Tim's response, its the name of the command that needs to be lowercase case. Also make sure the the parsing of the plugin.yml is right

    Ex.
    commands:
    <Space><space>scoreboard:
     
  4. Offline

    xXDasFabiXx

    Is that correct?


    name: Dings2
    version: 1.1
    main: de.xxibafdasxx.dings.main.Main

    commands:
    <Space><space>scoreboard:
    <Space><space><Space><space>description: scoreboard
     
  5. Offline

    xbpuk

  6. Offline

    AdamDev

Thread Status:
Not open for further replies.

Share This Page