ZombieApoc Plugin not loading

Discussion in 'Plugin Development' started by iB4NANA_, Jun 14, 2020.

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

    iB4NANA_

    I have a plugin ZombieApoc that I am working on and I haven't been able to get it on my server (it doesn't load onto the server). Here is the some of the terminal code while the server is launching:



    Code:
    [17:33:33] [Server thread/INFO]: Starting minecraft server version 1.15.2
    
    [17:33:33] [Server thread/INFO]: Loading properties
    
    [17:33:34] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-a99063f-fad2494 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
    
    [17:33:34] [Server thread/INFO]: Debug logging is disabled
    
    [17:33:34] [Server thread/INFO]: Server Ping Player Sample Count: 12
    
    
    [17:33:34] [Server thread/INFO]: Using 4 threads for Netty based IO
    
    [17:33:34] [Server thread/INFO]: Default game type: SURVIVAL
    
    [17:33:34] [Server thread/INFO]: Generating keypair
    
    [17:33:35] [Server thread/INFO]: Starting Minecraft server on *:25565
    
    [17:33:35] [Server thread/INFO]: Using default channel type
    
    [17:33:41] [Server thread/WARN]: Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
    
    
    [17:33:50] [Server thread/WARN]: Legacy plugin MinecraftPlugins v1.0 does not specify an api-version.
    
    [17:33:50] [Server thread/WARN]: Legacy plugin ZombieApoc v1.0 does not specify an api-version.
    
    [17:33:50] [Server thread/WARN]: [ZombieApoc] Loaded class me.iB4NANA_.MinecraftPlugins.Main from MinecraftPlugins v1.0 which is not a depend, softdepend or loadbefore of this plugin.
    
    [17:33:50] [Server thread/ERROR]: Could not load 'plugins/ZombieApoc#10.jar' in folder 'plugins'
    
    org.bukkit.plugin.InvalidPluginException: java.lang.IllegalArgumentException: Plugin already initialized!
    
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:139) ~[spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:394) ~[spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:301) [spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at org.bukkit.craftbukkit.v1_15_R1.CraftServer.loadPlugins(CraftServer.java:353) [spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:210) [spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:784) [spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at java.lang.Thread.run(Thread.java:832) [?:?]
    
    Caused by: java.lang.IllegalArgumentException: Plugin already initialized!
    
        at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:199) ~[spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:52) ~[spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at me.iB4NANA_.MinecraftPlugins.Main.<init>(Main.java:9) ~[?:?]
    
        at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
    
        at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
    
        at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
    
        at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) ~[?:?]
    
        at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:124) ~[?:?]
    
        at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:346) ~[?:?]
    
        at java.lang.Class.newInstance(Class.java:604) ~[?:?]
    
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) ~[spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        ... 6 more
    
    Caused by: java.lang.IllegalStateException: Initial initialization
    
        at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:202) ~[spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:52) ~[spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at me.iB4NANA_.MinecraftPlugins.Main.<init>(Main.java:9) ~[?:?]
    
        at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
    
        at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
    
        at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
    
        at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) ~[?:?]
    
        at java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:124) ~[?:?]
    
        at jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:346) ~[?:?]
    
        at java.lang.Class.newInstance(Class.java:604) ~[?:?]
    
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) ~[spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot-1.15.2-R0.1-SNAPSHOT.jar:git-Spigot-a99063f-fad2494]
    
        ... 6 more
    
    [17:33:50] [Server thread/WARN]: Legacy plugin ServerAutoDisable v1.0 does not specify an api-version.
    
    [17:33:50] [Server thread/WARN]: Legacy plugin ChatPlugin v1.0 does not specify an api-version.
    
    [17:33:50] [Server thread/INFO]: [MinecraftPlugins] Loading MinecraftPlugins v1.0
    
    [17:33:50] [Server thread/INFO]: [ServerAutoDisable] Loading ServerAutoDisable v1.0
    
    [17:33:50] [Server thread/INFO]: [ChatPlugin] Loading ChatPlugin v1.0
    
    I have attached screenshots of all my code.
    I would really appreciate help I've been stuck not his for a long time and can't seem to figure it out.
     

    Attached Files:

    Last edited by a moderator: Jun 14, 2020
  2. Offline

    timtower Administrator Administrator Moderator

    @iB4NANA_ You still have an old jar in there: MinecraftPlugins, remove it
     
Thread Status:
Not open for further replies.

Share This Page