Trying to make a simple command for a plugin

Discussion in 'Plugin Development' started by wolfroe, Apr 23, 2020.

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

    wolfroe

    I'm trying to make a plugin that drops a block above you whenever you type in a command. But i've run into a problem where the plugin doesn't load on my server therefor it doesn't work. I do not know what's wrong. Any help would be greatly appreciated.
    The first image (class fallingblocks) is the main of the plugin.

    fallingblocks.PNG blocks.PNG
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    wolfroe

    @timtower i uploaded the server log, i have a few other plugins enabled but the fallingblocks does not show up.

    plugin.yml file contains:
    Code:
    name: fallingblocks
    main: fallingblocks.fallingblocks
    commands:
        fallingblocks:
            description: fallingblocks
            usage: /fallingblocks
     

    Attached Files:

  4. Online

    timtower Administrator Administrator Moderator

    @wolfroe
    Code:
    org.bukkit.plugin.InvalidDescriptionException: version is not defined
       at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:929) ~[spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
       at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:240) ~[spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
       at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:165) ~[spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
       at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:138) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
       at org.bukkit.craftbukkit.v1_15_R1.CraftServer.loadPlugins(CraftServer.java:351) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
       at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:203) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
       at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:784) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
       at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
    Caused by: java.lang.NullPointerException
       at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:927) ~[spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
       ... 7 more
    Always read the logs. They are your best friend.
     
  5. Offline

    wolfroe

    thank you so much, and i will in the future! I'm still figuering everything out.
     
Thread Status:
Not open for further replies.

Share This Page