My own Join/Quit message plugin isn't loading the package class

Discussion in 'BungeeCord Plugin Help' started by ComboTombo, Jul 10, 2018.

Thread Status:
Not open for further replies.
  1. : Could not load 'plugins\JoinQuitMessage.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: Cannot find main class `ct.jqmsg.Main'
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:66) ~[Spigot.jar:git-Spigot-550ebac-7019900]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[Spigot.jar:git-Spigot-550ebac-7019900]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[Spigot.jar:git-Spigot-550ebac-7019900]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [Spigot.jar:git-Spigot-550ebac-7019900]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [Spigot.jar:git-Spigot-550ebac-7019900]
    at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [Spigot.jar:git-Spigot-550ebac-7019900]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [Spigot.jar:git-Spigot-550ebac-7019900]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]
    Caused by: java.lang.ClassNotFoundException: ct.jqmsg.Main
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_171]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[Spigot.jar:git-Spigot-550ebac-7019900]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[Spigot.jar:git-Spigot-550ebac-7019900]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_171]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_171]
    at java.lang.Class.forName0(Native Method) ~[?:1.8.0_171]
    at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_171]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[Spigot.jar:git-Spigot-550ebac-7019900]
    ... 7 more]
    So, here's the error log. It says that there's no main class called ct.jqmsg.Main but there actually is one. Look here:
    [​IMG]
    Here's my plugin.yml file:
    main: ct.jqmsg.Main
    name: JoinQuitMessage
    version: 1.0
    author: ComboTombo
    description: This plugin will send a message when a player joins/leaves the server.
     
    #1 ComboTombo, Jul 10, 2018
    Last edited: Jul 10, 2018
  2. It will not work with Spigot jar, use BungeeCord instead. + Do not use plugin.yml in BungeeCord, but use bungee.yml because it will work.
     
  3. Alright so I've removed Spigot.jar from my referenced libraries and used BungeeCord.jar but now, almost every line has an error...
     
  4. Locking this thread and taking it to the Spigot Plugin Developement sub-board
     
Thread Status:
Not open for further replies.

Share This Page