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
    at$1.execute( ~[spigot(2).jar:git-Spigot-1649]
    at org.bukkit.plugin.RegisteredListener.callEvent( ~[spigot(2).jar:git-Spigot-1649]
    at org.bukkit.plugin.SimplePluginManager.fireEvent( [spigot(2).jar:git-Spigot-1649]
    at org.bukkit.plugin.SimplePluginManager.callEvent( [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.PlayerList.c( [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.PlayerList.a( [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.LoginListener.c( [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.LoginListener.a( [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.NetworkManager.a( [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.ServerConnection.c( [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.MinecraftServer.v( [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.DedicatedServer.v( [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.MinecraftServer.u( [spigot(2).jar:git-Spigot-1649]
    at [spigot(2).jar:git-Spigot-1649]
    at [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( ~[?:?]
    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$1.execute( ~[spigot(2).jar:git-Spigot-1649]
    ... 14 more
  2. Sw4p


    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


    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
    • 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