NPC Error

Discussion in 'Spigot Plugin Help' started by Angeles, Jun 1, 2016.

  1. Well Atm im coding a npc logger and i have an error

    [22:13:54 ERROR]: Could not pass event PlayerJoinEvent to Aphrodite v1.0
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot(2).jar:git-Spigot-1649]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot(2).jar:git-Spigot-1649]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:514) [spigot(2).jar:git-Spigot-1649]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:499) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.PlayerList.c(PlayerList.java:265) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.PlayerList.a(PlayerList.java:152) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.LoginListener.c(LoginListener.java:119) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.LoginListener.a(LoginListener.java:44) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:189) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot(2).jar:git-Spigot-1649]
    Caused by: java.lang.Error: Unresolved compilation problem:
    The method info(String) is undefined for the type Object

    at com.temptingmc.hcfcore.listeners.NPCListener.onPlayerJoin(NPCListener.java:195) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_60]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:298) ~[spigot(2).jar:git-Spigot-1649]
    ... 14 more
     
  2. Sw4p

    Supporter

    What is in your onPlayerJoin method in your NPCListener code? especially line 195.
     
  3. Use onJoin() method
     
  4. LOL im not giving src
     
    • Funny Funny x 1
    • Optimistic Optimistic x 1
  5. No help for you then. Listen to @Bear53's post
     
    • Winner Winner x 3
  6. You should be banned from these forums. You said "eat shit and die" to me on another thread. You demand help in all your threads and show absolutely no effort and want everything to be done for you.
    You are toxic and very rude to this community if you could leave that would be great @jflory7
     
    #7 Bear53, Jun 2, 2016
    Last edited: Jun 2, 2016
    • Like Like x 2
    • Agree Agree x 1
    • Optimistic Optimistic x 1
  7. Sw4p

    Supporter

    If i knew you acted like this i would have left you with your error. This is not the way you act when people are trying to help you. Also i hope that actually learn to program in java some day so you can come back here and recognize your mistakes. Have a nice day!
     
  8. We cant help you if you cant help yourself ;)
     
  9. use onJoin()
     
  10. @jflory7
    what.
     
    • Optimistic Optimistic x 1
  11. just gonna point this out, but @Angeles needs to be more like you. You responded with kindness and positivity to a situation, were a guy told you to eat shit. You deserve a follow my good sir. ;)
     
    • Friendly Friendly x 1