Solved Server not recognizing plugin!

Discussion in 'Plugin Development' started by garageagle, May 13, 2016.

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

    garageagle

    Hey!

    When I install it with Maven, everything is fine, but when I put it in the plugins folder on the server and restart it, it doesn't see it. When I do '/pl' it lists all the plugins EXCEPT mine! :confused:

    Code can be found here.

    Thanks for your help!
     
  2. Try putting the plugin.yml into the root of the Project folder so it is at the root of the jar file when exported..
     
  3. Offline

    XxTimexX

    I thought that if he didn't put plugin.yml in his root folder he would get an error. Never worked with Maven tbh, so idk does it affect it. (Btw, it seems that he has plugin.yml in his root folder)

    @garageagle
    Do you get any kimd of error message while enabling your plugin?
     
  4. Offline

    garageagle

    I did what you said but it didn't work :(

    idk i just put it in the plugins folder and restart the server.

    here's the log:
    Code:
    SEND
    13.05 12:50:06 [Server] INFO Plugins (5): EchoPet, ArmorStandEditor, WorldEdit, Multiverse-Core, Multiverse-Portals
    13.05 12:50:01 [Server] Startup Done (2.629s)! For help, type "help" or "?"
    13.05 12:50:01 [Server] INFO Server permissions file permissions.yml is empty, ignoring it
    13.05 12:50:01 [Server] INFO Disabling Multiverse-Portals v2.5-b725
    13.05 12:50:01 [Server] ERROR http://ci.onarandombox.com/view/Multiverse/job/Multiverse-Core/
    13.05 12:50:01 [Server] ERROR Grab an updated copy at:
    13.05 12:50:01 [Server] ERROR Your of Core Protocol Level is: 18
    13.05 12:50:01 [Server] ERROR This version of Multiverse Portals requires Protocol Level: 19
    13.05 12:50:01 [Server] ERROR Your Multiverse-Core is OUT OF DATE
    13.05 12:50:01 [Server] INFO Enabling Multiverse-Portals v2.5-b725
    13.05 12:50:01 [Server] INFO Version 2.5-b641 (API v18) Enabled - By Rigby, fernferret, lithium3141 and main--
    13.05 12:50:00 [Server] INFO 4 - World(s) loaded.
    13.05 12:50:00 [Server] INFO Preparing start region for level 3 (Seed: -8384374185849167867)
    13.05 12:50:00 [Server] INFO Preparing start region for level 2 (Seed: 219071975490608072)
    13.05 12:49:59 [Server] INFO - Version 10.0 - using only an item based economy for Multiverse-Core v2.5-b641
    13.05 12:49:59 [Server] INFO Enabling Multiverse-Core v2.5-b641
    13.05 12:49:59 [Server] INFO Using com.sk89q.worldedit.bukkit.adapter.impl.Spigot_v1_8_R3 as the Bukkit adapter
    13.05 12:49:59 [Server] INFO WEPIF: Using the Bukkit Permissions API.
    13.05 12:49:59 [Server] INFO Enabling WorldEdit v6.1;no_git_id
    13.05 12:49:59 [Server] INFO Enabling ArmorStandEditor v1.8-0.1.0
    13.05 12:49:59 [Multicraft] Skipped 13 lines due to rate limit (30/s)
    13.05 12:49:58 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_05]
    13.05 12:49:58 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_05]
    13.05 12:49:58 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_05]
    13.05 12:49:58 [Server] INFO at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_05]
    13.05 12:49:58 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_05]
    13.05 12:49:58 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_05]
    13.05 12:49:58 [Server] INFO Caused by: java.lang.ClassNotFoundException: com.gmail.garageagle.TestPlugin1
    13.05 12:49:58 [Server] INFO at java.lang.Thread.run(Unknown Source) [?:1.8.0_05]
    13.05 12:49:58 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:503) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:179) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerList.<init>(PlayerList.java:69) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.<init>(CraftServer.java:251) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:289) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:42) ~[craftbukkit-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Bukkit-880a532]
    13.05 12:49:58 [Server] INFO org.bukkit.plugin.InvalidPluginException: Cannot find main class `com.gmail.garageagle.TestPlugin1'
    13.05 12:49:58 [Server] ERROR Could not load 'plugins/TestPlugin1-0.0.1-SNAPSHOT.jar' in folder 'plugins'
    13.05 12:49:58 [Server] INFO This server is running CraftBukkit version git-Bukkit-880a532 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
    13.05 12:49:58 [Server] INFO Using epoll channel type
    13.05 12:49:58 [Server] INFO Starting Minecraft server on 167.114.208.127:35676
    13.05 12:49:58 [Server] INFO Generating keypair
    13.05 12:49:58 [Server] INFO Default game type: CREATIVE
    13.05 12:49:58 [Server] INFO Loading properties
    13.05 12:49:58 [Server] WARN To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    13.05 12:49:58 [Server] INFO Starting minecraft server version 1.8.8
    13.05 12:49:52 [Server] INFO Loading libraries, please wait...
    13.05 12:49:52 [Multicraft] Failed to obtain process information: NoSuchProcess no process found with pid 2566
    13.05 12:49:52 [Multicraft] Updating eula.txt file
    13.05 12:49:52 [Multicraft] Loaded config for "Craftbukkit 1.8.8"
    13.05 12:49:52 [Multicraft] Starting server!
    13.05 12:49:52 [Multicraft] Loading server properties
    13.05 12:49:49 [Multicraft] Server stopped
    13.05 12:49:49 [Multicraft] Server shut down (stopping)
     
  5. Offline

    XxTimexX

    @garageagle
    Try doing this in your plugin.yml
    Code:
    main: com.gmail.garageagle.testplugin1.TestPlugin1
    
    Bukkit's plugin.yml is case sensetive.
     
  6. Offline

    garageagle

    OK, I'll try it! :)
     
  7. Offline

    garageagle

    I got it working! :D I refactored the package name to just 'com.gmail.garageagle' and changed the references because the log said 'org.bukkit.plugin.InvalidPluginException: Cannot find main class `com.gmail.garageagle.TestPlugin1' and 'java.lang.ClassNotFoundException: com.gmail.garageagle.TestPlugin1'

    Now for a treat!
    [cake] [cake][diamond][diamond]
     
  8. Offline

    WolfMage1

    @garageagle Can I just compliment you on the amount of comments you use, and that they're very descriptive of what the action ahead does.

    :)
     
    garageagle and XxTimexX like this.
  9. Offline

    MasterDoctor

    It could have just been a tutorial but if it was him then I agree!

    Sent from my SM-T710 using Tapatalk
     
    garageagle likes this.
  10. Offline

    garageagle

    Thanks!
     
Thread Status:
Not open for further replies.

Share This Page