Problem

Discussion in 'Spigot Plugin Development' started by SharpGames.de, May 30, 2016.

  1. What is the problem ? http://pastebin.com/EDVRWjZ7

    [15:46:26] [Server thread/INFO]: Fr3eaK_ issued server command: /pigmanarmy:pigman-shop
    [15:46:26] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pigmanarmy:pigman-shop' in plugin PigManArmy v1.2
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Bukkit-12698ea]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) ~[craftbukkit.jar:git-Bukkit-12698ea]
    at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:620) ~[craftbukkit.jar:git-Bukkit-12698ea]
    at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1106) [craftbukkit.jar:git-Bukkit-12698ea]
    at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:966) [craftbukkit.jar:git-Bukkit-12698ea]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(SourceFile:37) [craftbukkit.jar:git-Bukkit-12698ea]
    at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(SourceFile:9) [craftbukkit.jar:git-Bukkit-12698ea]
    at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit.jar:git-Bukkit-12698ea]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_51]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_51]
    at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [craftbukkit.jar:git-Bukkit-12698ea]
    at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:673) [craftbukkit.jar:git-Bukkit-12698ea]
    at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:335) [craftbukkit.jar:git-Bukkit-12698ea]
    at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:629) [craftbukkit.jar:git-Bukkit-12698ea]
    at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:537) [craftbukkit.jar:git-Bukkit-12698ea]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
    Caused by: java.lang.IllegalArgumentException: Health must be between 0 and 1024.0
    at org.bukkit.craftbukkit.v1_8_R3.entity.CraftLivingEntity.setHealth(CraftLivingEntity.java:83) ~[craftbukkit.jar:git-Bukkit-12698ea]
    at Pigman_Npcs.Pigman_Npc_Spawn.onCommand(Pigman_Npc_Spawn.java:96) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Bukkit-12698ea]
    ... 15 more
     
  2. Link the plugin?

    Show code eh....


    And for the error:
     
  3. Can you read?
    Code (Text):
    Caused by: java.lang.IllegalArgumentException: Health must be between 0 and 1024.0
     
    • Agree Agree x 1
  4. Plugin for my Friend

    Server IP : 85.131.185.180:25565
     
    #4 SharpGames.de, May 30, 2016
    Last edited by a moderator: May 30, 2016
  5. The error is in Pigman_Npc_Spawn.java:96 but does not show the code impossible to help
     
  6. Thanks :)