Solved Server errors

Discussion in 'Plugin Help/Development/Requests' started by NoSpanMan, Apr 5, 2015.

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

    NoSpanMan

    I have a localhost server my plugin works good and al my others to and when i place them in an free test server they doesn't works he says: An internal error occurred while attempting to perform this command

    console:
    Code:
    [09:49:00 INFO]: CookieGamerNL issued server command: /firstkill setlobby
    [09:49:00 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'firstkill' in plugin FirstKill v1.0
      at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:703) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:953) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:815) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
    Caused by: java.lang.NoClassDefFoundError: net/md_5/bungee/api/ChatColor
      at me.coding.firstkill.Main.onCommand(Main.java:37) ~[?:?]
      at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      ... 13 more
    Caused by: java.lang.ClassNotFoundException: net.md_5.bungee.api.ChatColor
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[?:1.7.0_75]
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_75]
      at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_75]
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_75]
      at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_75]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_75]
      at me.coding.firstkill.Main.onCommand(Main.java:37) ~[?:?]
      at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit-1.7.9.jar:git-Bukkit-1.7.2-R0.3-30-ge027d69-b3058jnks]
      ... 13 more
    
     
  2. Offline

    nverdier

    @NoSpanMan You're using Spigot for your library, and using net.md_5.bungee.api.ChatColor instead of org.bukkit.ChatColor.
     
  3. Offline

    NoSpanMan

    I can't find craftbukkit 1.7 :p
     
  4. Offline

    nverdier

    @NoSpanMan You are using it on your server... Like the jar you run your server with is that. But you don't need it unless you're using NMS/Packets, you can just use the API (Bukkit)
     
  5. Offline

    NoSpanMan

    @nverdier But i code my plugin with spigot i think so but i change it and he gives the same error how can i fix this?

    @nverdier How can i set it to org.bukkit.ChatColor. i use ChatColor.AQUA <--- ect.
     
    Last edited by a moderator: Apr 5, 2015
  6. Offline

    nverdier

  7. Offline

    NoSpanMan

    @nverdier I do that but it doesn't works
     
  8. Offline

    nverdier

    @NoSpanMan What do you do? Please post the code after the change. And the error if there is one.
     
  9. Offline

    NoSpanMan

    @nverdier I see something i gonna try something
     
  10. Offline

    nverdier

  11. Offline

    bwfcwalshy Retired Staff

    Moved to Bukkit Alternates.
     
  12. Offline

    NoSpanMan

  13. Offline

    nverdier

    @NoSpanMan Glad I could help! Please mark your thread as solved. See this for more info.
     
Thread Status:
Not open for further replies.

Share This Page