Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6642

Throw better message if plugin.yml is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • Not relevant.

    • This server is running CraftBukkit version 3180-Spigot-38e6c03-ca0fe5b (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT)
    • Yes

      [02:51:14] [Server thread/ERROR]: Could not load 'plugins\TestPlugin-1.0.0.jar' in folder 'plugins'org.bukkit.plugin.InvalidDescriptionException: null is not properly structured.    at org.bukkit.plugin.PluginDescriptionFile.asMap(PluginDescriptionFile.java:1261) ~[spigot.jar:3180-Spigot-38e6c03-ca0fe5b]    at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:259) ~[spigot.jar:3180-Spigot-38e6c03-ca0fe5b]    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:175) ~[spigot.jar:3180-Spigot-38e6c03-ca0fe5b]    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:144) ~[spigot.jar:3180-Spigot-38e6c03-ca0fe5b]    at org.bukkit.craftbukkit.v1_17_R1.CraftServer.loadPlugins(CraftServer.java:384) ~[spigot.jar:3180-Spigot-38e6c03-ca0fe5b]    at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:233) ~[spigot.jar:3180-Spigot-38e6c03-ca0fe5b]    at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:995) ~[spigot.jar:3180-Spigot-38e6c03-ca0fe5b]    at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303) ~[spigot.jar:3180-Spigot-38e6c03-ca0fe5b]    at java.lang.Thread.run(Thread.java:831) [?:?]
      

      It would be better if Spigot tells you that the file is empty or leave a hint to it. If you are missing the version for example, it tells you that. Not that something is just null.

            Unassigned Unassigned
            jtop Mathew Donegan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: