cnaude / purplebungeeirc Goto Github PK
View Code? Open in Web Editor NEWBungeeCord IRC relay plugin.
BungeeCord IRC relay plugin.
The plugin connects and join the channel but it's doesn't forward the chat or anything. I have all permissions required.
http://pastebin.com/RAWw2PjP
Users can't click on any urls that come from IRC. I have shortify turned off.
When we switched to new Waterfall version with Minecraft 1.18 server support, we've stumbled upon a following problem. The plugin starts, yet it throws an error:
[17:23:46] [PurpleBungeeIRC Pool Thread #5/ERROR]: Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@278667fd, id=9, owner=com.cnaude.purpleirc.PurpleIRC@2c6aed22, task=com.cnaude.purpleirc.Purpl
eBot$3@456ae46a, delay=0, period=0, running=true) encountered an exception
java.lang.NoSuchFieldError: WHITESPACE
at org.pircbotx.Utils.tokenizeLine(Utils.java:106) ~[?:?]
at org.pircbotx.InputParser.handleLine(InputParser.java:307) ~[?:?]
at org.pircbotx.PircBotX.startLineProcessing(PircBotX.java:282) ~[?:?]
at org.pircbotx.PircBotX.connect(PircBotX.java:242) ~[?:?]
at org.pircbotx.PircBotX.startBot(PircBotX.java:155) ~[?:?]
at com.cnaude.purpleirc.PurpleBot$3.run(PurpleBot.java:409) ~[?:?]
at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:66) ~[Waterfall.jar:git:Waterfall-Bootstrap:1.18-R0.1-SNAPSHOT:21e4c1d:475]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
After that, it stops and nothing happens. Config remained unchanged since 1.17, and it worked perfectly for that version.
Hi, sorry if this is a stupid question, but when people chat in the server, the server say this error, with debug mode:
I have Unrealircd V: 3.4 installed, and the lastest version of your plugin.
01:22:26 [INFO] [PurpleBungeeIRC] [DEBUG] Player Sandrita_Chan has permission irc.message.gamechat
01:22:26 [INFO] [PurpleBungeeIRC] [DEBUG] [game-chat] => #minecraft-test => Hi :)
01:22:26 [INFO] [PurpleBungeeIRC] [DEBUG] Tokenizing Sandra
01:22:26 [INFO] [PurpleBungeeIRC] [DEBUG] [P]Raw message: [§2%SERVER%§r] <%NAME%> %MESSAGE%
01:22:26 [INFO] [PurpleBungeeIRC] [DEBUG] Entering aysncIRCMessage
01:22:26 [INFO] [PurpleBungeeIRC] [DEBUG] [0]: queueAndSend message detected
01:22:26 [INFO] [PurpleBungeeIRC] [DEBUG] [blockingIRCMessage] About to send IRC message to #minecraft-test
01:22:26 [SEVERE] Task BungeeTask(sched=net.md_5.bungee.scheduler.BungeeScheduler@508dec2b, id=1, owner=com.cnaude.purpleirc.PurpleIRC@2c1b194a, task=com.cnaude.purpleirc.IRCMessageQueueWatcher$1@5efa40fe, delay=0, period=1000, running=true) encountered an exception
java.lang.RuntimeException: Couldn't pause thread for message delay
at org.pircbotx.output.OutputRaw.rawLine(OutputRaw.java:76)
at org.pircbotx.output.OutputRaw.rawLineSplit(OutputRaw.java:129)
at org.pircbotx.output.OutputRaw.rawLineSplit(OutputRaw.java:116)
at org.pircbotx.output.OutputIRC.message(OutputIRC.java:138)
at com.cnaude.purpleirc.PurpleBot.blockingIRCMessage(PurpleBot.java:404)
at com.cnaude.purpleirc.IRCMessageQueueWatcher.queueAndSend(IRCMessageQueueWatcher.java:42)
at com.cnaude.purpleirc.IRCMessageQueueWatcher.access$000(IRCMessageQueueWatcher.java:12)
at com.cnaude.purpleirc.IRCMessageQueueWatcher$1.run(IRCMessageQueueWatcher.java:30)
at net.md_5.bungee.scheduler.BungeeTask.run(BungeeTask.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Exception encountered when writing to socket
at org.pircbotx.PircBotX.sendRawLineToServer(PircBotX.java:318)
at org.pircbotx.Utils.sendRawLineToServer(Utils.java:89)
at org.pircbotx.output.OutputRaw.rawLine(OutputRaw.java:73)
... 11 more
Caused by: java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:135)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:220)
at java.io.Writer.write(Writer.java:157)
at org.pircbotx.PircBotX.sendRawLineToServer(PircBotX.java:314)
... 13 more
Hi, first of all thank you for making this plugin for Bungee, it may prove to be the missing link in our chat setup.
Would it be possible to add support for the %HEROCOLOR% %HERONICK% variables, as well as for the ability to change message formatting per HC Channel, in the same way that you can with PurpleIRC
irc-hero-channels:
Global: ''
irc-hero-action-channels:
Global: ''
hero-channels:
Global: ''
hero-action-channels:
Global: ''
Thank you and much appreciated
Aaron
Due to a bug in the code, players that do not have permissions can still run the commands. They will be shown an error message, however the command will still continue to execute.
I'm guessing this is planned based on the varialbes available in the default config, but just wanted to check if replacement of the group/player prefix/suffix variables is planned.
If so I would suggest that the variables be processed by the HerochatBungeeBridge-Bukkit plugin on a per server basis, that way it can integrate with Vault to pull from e.g. PermissionsEx and use the correct prefix/suffix on the correct server, as they may vary cross server.
Thanks :)
[11:06:12] [main/WARN]: Exception encountered when loading plugin: PurpleBungeeIRC
java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
com/cnaude/purpleirc/Utilities/ColorConverter.addIrcColorMap(Ljava/lang/String;Ljava/lang/String;)V @154: invokevirtual
Reason:
Type 'net/md_5/bungee/api/ChatColor' (current frame, stack[1]) is not assignable to 'java/lang/Enum'
Current Frame:
bci: @154
flags: { }
locals: { 'com/cnaude/purpleirc/Utilities/ColorConverter', 'java/lang/String', 'java/lang/String', 'net/md_5/bungee/api/ChatColor' }
stack: { 'java/util/EnumMap', 'net/md_5/bungee/api/ChatColor', 'java/lang/String' }
Bytecode:
0000000: 2bb6 003a b800 3b4e 2c12 3cb6 003d 9900
0000010: 3b2a b400 052d b600 3e99 0030 2ab4 000d
0000020: bb00 2159 b700 2212 3fb6 0024 2cb6 0024
0000030: 1226 b600 242b b600 24b6 0027 b600 282a
0000040: b400 052d b600 4057 b1a7 0020 3a04 2ab4
0000050: 000d bb00 2159 b700 2212 42b6 0024 2bb6
0000060: 0024 b600 27b6 0043 b12d c600 342a b400
0000070: 0dbb 0021 59b7 0022 123f b600 242b b600
0000080: 2412 26b6 0024 2cb6 0024 b600 27b6 0028
0000090: 2ab4 0005 2d2a 2cb7 0044 b600 4557 b1
Exception Handler Table:
bci [0, 72] => handler: 76
Stackmap Table:
append_frame(@73,Object[#176])
full_frame(@76,{Object[#169],Object[#154],Object[#154]},{Object[#177]})
append_frame(@105,Object[#176])
same_frame(@158)
at com.cnaude.purpleirc.PurpleIRC.loadConfig(PurpleIRC.java:392) ~[?:?]
at com.cnaude.purpleirc.PurpleIRC.onEnable(PurpleIRC.java:180) ~[?:?]
at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:300) ~[waterfall.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:8afc4e2:366]
at net.md_5.bungee.BungeeCord.start(BungeeCord.java:289) ~[waterfall.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:8afc4e2:366]
at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:62) ~[waterfall.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:8afc4e2:366]
at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15) ~[waterfall.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:8afc4e2:366]
Is it possible to add VentureChat support for the bungee chat option in venturechat?
Although it still works, getting this every time a chat message is processed minecraft-side (Game->IRC) is slightly annoying:
03:17:24 [SEVERE] May 15, 2015 3:17:24 AM net.md_5.bungee.event.EventBus post
WARNING: Error dispatching event PluginMessageEvent(super=TargetedEvent(sender=net.md_5.bungee.ServerConnection@373a66a6, receiver=Eliz), cancelled=false, tag=BungeeChat, data=[0, 6, 71, 108, 111, 98, 97, 108, 0, 23, -62, -89, 50, 91, 71, 93, 32, -62, -89, 102, 69, 108, 105, 122, -62, -89, 50, 58, 32, 116, 101, 115, 116, 0, 4, 69, 108, 105, 122]) to listener com.cnaude.purpleirc.GameListeners.GamePluginMessageListener@2fc0cc3
java.lang.IllegalStateException: java.io.EOFException
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:330)
at com.cnaude.purpleirc.ChatMessage.<init>(ChatMessage.java:25)
at com.cnaude.purpleirc.GameListeners.GamePluginMessageListener.receievePluginMessage(GamePluginMessageListener.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.md_5.bungee.event.EventHandlerMethod.invoke(EventHandlerMethod.java:19)
at net.md_5.bungee.event.EventBus.post(EventBus.java:47)
at net.md_5.bungee.api.plugin.PluginManager.callEvent(PluginManager.java:367)
at net.md_5.bungee.connection.DownstreamBridge.handle(DownstreamBridge.java:222)
at net.md_5.bungee.protocol.packet.PluginMessage.handle(PluginMessage.java:62)
at net.md_5.bungee.netty.HandlerBoss.channelRead(HandlerBoss.java:75)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:161)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:161)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:161)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.handler.timeout.ReadTimeoutHandler.channelRead(ReadTimeoutHandler.java:150)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)
at java.io.DataInputStream.readUTF(DataInputStream.java:589)
at java.io.DataInputStream.readUTF(DataInputStream.java:564)
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:328)
... 34 more
Above you can click and see the screen shot of the error after getting kicked.
Thank you in advance!
hello my server's herochat support were broken.
previous setup's for bot is not working anymore.
i'm using 1.11.2 and herochat 5.7.0
Link to the latest build on the front page of repository is broken and gives 404 error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.