Plugin Won't Run

Discussion in 'Plugin Development' started by StyL_TwisT, Feb 12, 2013.

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

    StyL_TwisT

    Hi, whenever i reload i get this message in the console about my plugin, MinePay.

    Code:
    12.02 07:05:08 [Server] INFO at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    12.02 07:05:08 [Server] INFO at me.styltwist.minepay.MinePay.<init>(MinePay.java:23)
    12.02 07:05:08 [Server] INFO at me.styltwist.minepay.MyBlockListener.<init>(MyBlockListener.java:26)
    12.02 07:05:08 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111)
    12.02 07:05:08 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117)
    12.02 07:05:08 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:170)
    12.02 07:05:08 [Server] INFO at org.apache.commons.lang.Validate.notNull(Validate.java:203)
    12.02 07:05:08 [Server] INFO Caused by: java.lang.IllegalArgumentException: File cannot be null
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.Packet3Chat.handle(Packet3Chat.java:44)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:853)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.PlayerConnection.chat(PlayerConnection.java:898)
    12.02 07:05:08 [Server] INFO at net.minecraft.server.v1_4_R1.PlayerConnection.handleCommand(PlayerConnection.java:980)
    12.02 07:05:08 [Server] INFO at org.bukkit.craftbukkit.v1_4_R1.CraftServer.dispatchCommand(CraftServer.java:514)
    12.02 07:05:08 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186)
    12.02 07:05:08 [Server] INFO at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23)
    12.02 07:05:08 [Server] INFO at org.bukkit.Bukkit.reload(Bukkit.java:184)
    12.02 07:05:08 [Server] INFO at org.bukkit.craftbukkit.v1_4_R1.CraftServer.reload(CraftServer.java:594)
    12.02 07:05:08 [Server] INFO at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239)
    12.02 07:05:08 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
    12.02 07:05:08 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
    12.02 07:05:08 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:182)
    12.02 07:05:08 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.IllegalArgumentException: File cannot be null
    12.02 07:05:08 [Server] SEVERE Could not load 'plugins/MinePay.jar' in folder 'plugins'
    Anyone have any idea what is wrong?

    Thanks,

    StyL TwisT
     
  2. Offline

    mb01

    Is your plugin's archive already opened by another program?
     
  3. Offline

    StyL_TwisT

    What do you mean? Oh the folder MinePay doesn't even generate.
     
  4. Offline

    mb01

    I mean your .jar, if it's opened or accessed by another program it's possible that Craftbukkit can't use it.
     
  5. Offline

    StyL_TwisT

    I opened it earlier with The Unarchiver to check that the config was in there.

    mb01 would that be the cause?

    Anyone know?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  6. Offline

    keensta

    Looks like your yankconfiguration is returning null make sure it's actually loading properly
     
  7. Offline

    StyL_TwisT

    How do i make it load properly? i have tried multiple times
     
  8. Offline

    caseif

Thread Status:
Not open for further replies.

Share This Page