Dark32 / RPchat2

mcnw.ru
0 stars 0 forks source link

Ошибка при отправке личных сообщений #34

Closed Orhideous closed 2 years ago

Orhideous commented 10 years ago

Сервер — MCPC+ 1.5.2 Никаких других плагинов, влияющих на чат (и вообще, относящихся к чату) не стоит больше. При использовании конфигурации — текст ошибки следующий:

2014-03-01 02:14:36 [INFO] [Orhideous →  Rainbow_Spike]: Test message
2014-03-01 02:14:36 [SEVERE] Could not pass event AsyncPlayerChatEvent to RPChat v1.0.5
org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:351)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:31)
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:461)
        at net.minecraft.network.NetServerHandler.chat(NetServerHandler.java:1267)
        at net.minecraft.network.NetServerHandler.func_72481_a(NetServerHandler.java:1176)
        at net.minecraft.network.packet.Packet3Chat.func_73279_a(Packet3Chat.java:60)
        at net.minecraft.network.TcpConnection.func_74447_i(TcpConnection.java:323)
        at net.minecraft.network.TcpConnection.func_74450_c(TcpConnection.java:528)
        at net.minecraft.network.TcpReaderThread.run(SourceFile:94)
Caused by: java.lang.NullPointerException
2014-03-01 02:14:36 [INFO] <Orhideous> @Rainbow_Spike Test message

Если в конфигурации изменить префикс для канала yell с «!» на «~», к примеру, то текст ошибки меняется. То же происходит, если удалить все каналы, кроме глобального и личных сообщений, причем префикс личных сообщений неважен.

2014-03-01 02:26:25 [INFO] [Orhideous →  Rainbow_Spike]: Test Message
2014-03-01 02:26:25 [SEVERE] Could not pass event AsyncPlayerChatEvent to RPChat v1.0.5
org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:351)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:31)
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:461)
    at net.minecraft.network.NetServerHandler.chat(NetServerHandler.java:1267)
    at net.minecraft.network.NetServerHandler.func_72481_a(NetServerHandler.java:1176)
    at net.minecraft.network.packet.Packet3Chat.func_73279_a(Packet3Chat.java:60)
    at net.minecraft.network.TcpConnection.func_74447_i(TcpConnection.java:323)
    at net.minecraft.network.TcpConnection.func_74450_c(TcpConnection.java:528)
    at net.minecraft.network.TcpReaderThread.run(SourceFile:94)
Caused by: java.lang.NullPointerException
    at java.util.AbstractCollection.addAll(AbstractCollection.java:341)
    at ru.dark32.chat.ChatListener.onPlayerChat(ChatListener.java:73)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:349)
    ... 10 more
2014-03-01 02:26:25 [INFO] <Orhideous> @Rainbow_Spike Test Message