Not sure what a .jar file (uploaded onto the plugins folder on minecraft server) should contain

Discussion in 'Plugin Development' started by caledonian26, Nov 23, 2022.

  1. Offline

    caledonian26

    I am using eclipse (Maven) to create a Bukkit/Spigot plugin for Minecraft using the Java programming language.

    I am using Shockbyte to host the server for the game (a paper server) and am uploading the '.jar' file into the 'plugins' folder of the server in order for it to record information from the game.

    Do I only need to export the main.java file that contains the source code to a .jar file (see screenshot)?

    Or do I need to export the pom.xml and plugin.yml to .jar files too (also seen in screenshot)?

    If no for the latter question, do I need to add the plugin.yml file directly into my plugins folder on the minecraft server (seen in screenshot)?

    Would be so grateful for a helping hand!
     

    Attached Files:

    Last edited: Nov 23, 2022
  2. Offline

    timtower Administrator Administrator Moderator

    @caledonian26 Plugin needs to contain class files, not .java files.
     
  3. Offline

    caledonian26

    Thank you for clarifying this - I believe that the .java file is automatically transferred to a class file in the process of creating a jar file? :)
     
  4. Offline

    timtower Administrator Administrator Moderator

    Should be
     

Share This Page