i have error with my plugin!

Discussion in 'Spigot Plugin Development' started by SirAbdulllah, May 29, 2016.

Thread Status:
Not open for further replies.
  1. i have error i dont know why all my cods i typed without any error

    29.05 07:53:17 [Server] INFO [FFA] Disabling FFA v1.0
    29.05 07:53:17 [Server] ERROR Could not load 'plugins/FFA-Tools.jar' in folder 'plugins'
    29.05 07:53:17 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.IllegalArgumentException: Plugin already initialized!
    29.05 07:53:17 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:133) ~[custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:341) ~[custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:263) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.java:369) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.reload(CraftServer.java:864) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at org.bukkit.Bukkit.reload(Bukkit.java:301) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1043) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:880) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO Caused by: java.lang.IllegalArgumentException: Plugin already initialized!
    29.05 07:53:17 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:122) ~[custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:66) ~[custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at SirAbdullah.Main.<init>(Main.java:30) ~[?:?]
    29.05 07:53:17 [Server] INFO at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_92]
    29.05 07:53:17 [Server] INFO at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_92]
    29.05 07:53:17 [Server] INFO at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_92]
    29.05 07:53:17 [Server] INFO at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_92]
    29.05 07:53:17 [Server] INFO at java.lang.Class.newInstance(Class.java:442) ~[?:1.8.0_92]
    29.05 07:53:17 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) ~[custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[custom.jar:git-Spigot-1649]
    29.05 07:53:17 [Server] INFO ... 19 more
    29.05 07:53:17 [Server] INFO Caused by: java.lang.IllegalStateException: Initial initialization
     
  2. 29.05 07:53:17 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.IllegalArgumentException: Plugin already initialized!

    You did a "new MainClassName()" somewhere, or called onEnable.
     
  3. well my guess you have another plugin with the same main class name and same package , if so sort them.
     
  4. Oh Thank you so much! <3
     
Thread Status:
Not open for further replies.