Local chat problem

Discussion in 'Plugin Development' started by OrlandoLaCrue, Mar 23, 2016.

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

    OrlandoLaCrue

    So basically I have this plugin that allows you to do /local to make your chat yellow to nearby players. Well I suddenly got this error.

    Code:
    [07:48:03] [Server thread/ERROR]: Could not pass event PlayerChatEvent to OrlandoChannels v1.0.0
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[craftbukkit.jar:git-Bukkit-a5d4a93]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit.jar:git-Bukkit-a5d4a93]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit.jar:git-Bukkit-a5d4a93]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit.jar:git-Bukkit-a5d4a93]
        at net.minecraft.server.v1_9_R1.PlayerConnection$6.evaluate(PlayerConnection.java:1184) [craftbukkit.jar:git-Bukkit-a5d4a93]
        at org.bukkit.craftbukkit.v1_9_R1.util.Waitable.run(Waitable.java:24) [craftbukkit.jar:git-Bukkit-a5d4a93]
        at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:690) [craftbukkit.jar:git-Bukkit-a5d4a93]
        at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:361) [craftbukkit.jar:git-Bukkit-a5d4a93]
        at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:635) [craftbukkit.jar:git-Bukkit-a5d4a93]
        at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:539) [craftbukkit.jar:git-Bukkit-a5d4a93]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_66]
    Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
        at flavor.pie.OrlandoChannels.onChat(OrlandoChannels.java:92) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300) ~[craftbukkit.jar:git-Bukkit-a5d4a93]
        ... 10 more

    This is how local chat is supposed to look like:
    &e[L] [$25] [Owner] &e> &eHello

    You can download the jar file here to fix for me.
     
    Last edited by a moderator: Mar 23, 2016
  2. Offline

    Zombie_Striker

    @OrlandoLaCrue
    No one wants to download anything here. Post all relevant code either here on in Pastbin.


    Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
    at flavor.pie.OrlandoChannels.onChat(OrlandoChannels.java:92) ~[?:?]

    It seems you are trying to use a method that does not exist. Please post line 92 for OrlandoChannels.
     
  3. Offline

    OrlandoLaCrue

  4. Offline

    ComputerTurtle

  5. Offline

    _loco_

    Yeah, that's not how it works around here. No one is gonna fix stuff for you. We'll tell you what's wrong, but you have to fix it. Also, posting just a stack trace isn't helpful.
     
  6. Offline

    OrlandoLaCrue

    Here is the same error while using spigot I was using bukkit before.

    Code:
    [13:49:28] [Server thread/ERROR]: Could not pass event PlayerChatEvent to OrlandoChannels v1.0.0
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-f04e043-b3f6de0]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-f04e043-b3f6de0]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-f04e043-b3f6de0]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-f04e043-b3f6de0]
        at net.minecraft.server.v1_9_R1.PlayerConnection$7.evaluate(PlayerConnection.java:1281) [spigot.jar:git-Spigot-f04e043-b3f6de0]
        at org.bukkit.craftbukkit.v1_9_R1.util.Waitable.run(Waitable.java:24) [spigot.jar:git-Spigot-f04e043-b3f6de0]
        at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:735) [spigot.jar:git-Spigot-f04e043-b3f6de0]
        at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot.jar:git-Spigot-f04e043-b3f6de0]
        at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot.jar:git-Spigot-f04e043-b3f6de0]
        at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot.jar:git-Spigot-f04e043-b3f6de0]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_66]
    Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
        at flavor.pie.OrlandoChannels.onChat(OrlandoChannels.java:92) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_66]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_66]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-f04e043-b3f6de0]
        ... 10 more
    [13:49:38]
     
  7. Offline

    timtower Administrator Administrator Moderator

  8. Offline

    Zombie_Striker

    Same problem as before. Post the the 92nd line of the OrlandoChannels class.
     
  9. Offline

    OrlandoLaCrue

  10. Offline

    ComputerTurtle

  11. Offline

    Zombie_Striker

    @OrlandoLaCrue
    Post a ticket on the plugin page if you're having a problem with his plugin.
     
  12. Offline

    timtower Administrator Administrator Moderator

    Locked.
    Maybe he is busy, we are not gonna help you fix the code from somebody else. Just be patient.
     
    teej107 and Zombie_Striker like this.
Thread Status:
Not open for further replies.

Share This Page