Solved My Plugin Is Not Showing Up In-Game

Discussion in 'Plugin Development' started by RogerNick, Dec 14, 2020.

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

    RogerNick

    I just coded my first Minecraft plugin, I followed a tutorial exactly with the exception of the versions of everything. This is the video I followed:

    I have JavaSE-14 and I'm using spigot-1.16.4.jar

    I coded everything exactly how he did it, I then exported it like he did and put it into the plugins folder on my spigot 1.16.4 server. I then restarted the server, went into Minecraft and ran /pl and it said there were 0 plugins.
    I then put a plugin someone else had made that was for 1.16.4 (Dreams ManHunt Plugin) in the folder then reloaded Minecraft and ran /pl and there's showed up. I have absolutely no idea why this is happening. Any suggestions would be great!

    https://pastebin.com/esbkb6H4
     
    Last edited: Dec 14, 2020
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    RogerNick

    My full server log? I'm not 100% sure what that is lol
     
  4. Online

    timtower Administrator Administrator Moderator

    <server directory>/logs/latest.log
     
  5. Offline

    RogerNick

    I just edited my original question with the link
     
  6. Online

    timtower Administrator Administrator Moderator

    Read the first part please
     
  7. Offline

    RogerNick

    The first part of what?
     
  8. Offline

    bowlerguy66

    Something is wrong with your plugin.yml. Did you happen to use tab anywhere in the file? Also, give this a look: https://bukkit.org/threads/how-to-r...ubleshoot-your-own-plugins-by-yourself.32457/
     
  9. Offline

    RogerNick

    Attached Files:

  10. Online

    timtower Administrator Administrator Moderator

    @RogerNick
    Code:
    [18:24:30] [Server thread/ERROR]: Could not load 'plugins/HelloWorld.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    That is not the plugin.yml that belongs to the code though
     
  11. Offline

    Zaary

    You have to put plugin.yml in src folder
     
  12. Online

    timtower Administrator Administrator Moderator

    That is not the issue
     
  13. Offline

    RogerNick

    Wait, then what is the issue?
     
  14. Online

    timtower Administrator Administrator Moderator

    Read the stacktrace, bad formatted plugin.yml, it is there though.
     
  15. Offline

    RogerNick

    I have no clue what's wrong with the plugin.yml. I've researched the error and everything, nothing is working. Here is a picture of the code.
     

    Attached Files:

  16. Online

    timtower Administrator Administrator Moderator

    @RogerNick aliases: [hi]
    That is what the logs says that is in your plugin.yml
    So or it works, or you have a new error.
     
  17. Offline

    RogerNick

    What's wrong with that being in my plugin.yml?
     
  18. Online

    timtower Administrator Administrator Moderator

    @RogerNick Depends on where it sits and how it is formatted.
    Recompile your plugin, run it.
    If there is an error: post it with your plugin.yml
     
  19. Offline

    RogerNick

    Here's my log from when I just tried to run it and my plugin.yml file
     

    Attached Files:

  20. Online

    timtower Administrator Administrator Moderator

  21. Offline

    RogerNick

    which description, and how many?
     
  22. Online

    timtower Administrator Administrator Moderator

    @RogerNick The description in your plugin.yml....
    And probably 2
     
  23. Offline

    RogerNick

    I did that and it fixed that problem, but caused another. IDK why it's pointing at the colon, does that have to be something else or what?
     

    Attached Files:

  24. Online

    timtower Administrator Administrator Moderator

    @RogerNick Post your plugin.yml as well please.
     
  25. Offline

    RogerNick

     

    Attached Files:

  26. Online

    timtower Administrator Administrator Moderator

    @RogerNick Command description, not main one.
    Should have been more clear about that.
     
  27. Offline

    RogerNick

    Now it says I have the wrong version of something. How do I fix that?
     

    Attached Files:

  28. Online

    timtower Administrator Administrator Moderator

    @RogerNick You are not compiling with java 8.
     
  29. Offline

    RogerNick

    How do I compile it with a different version than I have it in right now?
     
  30. Online

    timtower Administrator Administrator Moderator

    Need to have the right version installed and selected in your IDE
     
Thread Status:
Not open for further replies.

Share This Page