Giter Site home page Giter Site logo

bennyboy1695 / betterdiscordbridge Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 10.0 60 KB

This plugin enables you to link your Velocity server to discord! It provides/ will provide a lot of configurable and customizable options to allow you to configure the plugin to be exactly how you want it!

Java 100.00%
discordbot minecraft minecraft-plugin plugin velocity velocity-plugin

betterdiscordbridge's People

Contributors

bennyboy1695 avatar x-niter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

betterdiscordbridge's Issues

Error on chatting

Minecraft to Discord is working and Discord to Minecraft not working. Another problem is every time a message sent from Minecraft or Discord a error message appears:
image
Using Velocity version 1.1.2 and plugin version 1.2.4

An error occurred when Minecraft player text include '\' character

in VelocityEventListener.java line 24 and 26
replaceAll function parameter need use Matcher.quoteReplacement fix this error
example:
replaceAll("", Matcher.quoteReplacement(serverName) )

other question
discrod to minecraft not work in velocity 1.0.5

I fixed all these problems
if you want, i will push them

Fix Chat duplication

[Bug]
I plan to take a look at this. Putting this here for communication's sake.

Sending a message in-game relays to discord and then back to the game.

Capture

Most likely a simple "Ignore bot" method.

Couldn't pass ProxyInitializeEvent to betterdiscordbridge

Full traceback:

java.lang.NullPointerException: Cannot invoke "net.dv8tion.jda.api.JDA.getPresence()" because the return value of "io.github.bennyboy1695.betterdiscordbridge.BetterDiscordBridge.getJDA()" is null
	at io.github.bennyboy1695.betterdiscordbridge.BetterDiscordBridge.updateGameStatus(BetterDiscordBridge.java:189) ~[?:?]
	at io.github.bennyboy1695.betterdiscordbridge.BetterDiscordBridge.onProxyInit(BetterDiscordBridge.java:79) ~[?:?]
	at io.github.bennyboy1695.betterdiscordbridge.Lmbda$1.execute(Unknown Source) ~[?:?]
	at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:47) ~[velocity.jar:3.0.0]
	at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:587) ~[velocity.jar:3.0.0]
	at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$6(VelocityEventManager.java:468) ~[velocity.jar:3.0.0]
	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) [?:?]

Maybe because the plugin isn't updated for Velocity 3.0.0?
Hope for a quick fix!

Discord chat to minecraft server chat does not work, but works with minecraft

Minecraft chat going to discord channel is working just fine, The only part of this that is not working is Discord Chat going to Minecraft servers.
I am going to try and play with a few things to see if i can fix it. If you happen to be able to sort the issue out before i can. Thank you in advance.
If i manage to figure it out, i will let you know.

[07:51:33] [JDA MainWS-ReadThread/ERROR]: One of the EventListeners had an uncaught exception
java.lang.NoClassDefFoundError: net/kyori/text/serializer/ComponentSerializers
	at io.github.bennyboy1695.betterdiscordbridge.Listeners.DiscordListener.onMessageReceived(DiscordListener.java:23) ~[?:?]
	at JDA.jda.core.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:409) ~[?:?]
	at JDA.jda.core.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:84) ~[?:?]
	at JDA.jda.core.handle.MessageCreateHandler.handleInternally(MessageCreateHandler.java:122) ~[?:?]
	at JDA.jda.core.handle.SocketHandler.handle(SocketHandler.java:37) ~[?:?]
	at JDA.jda.core.requests.WebSocketClient.onDispatch(WebSocketClient.java:1069) ~[?:?]
	at JDA.jda.core.requests.WebSocketClient.onEvent(WebSocketClient.java:929) ~[?:?]
	at JDA.jda.core.requests.WebSocketClient.handleEvent(WebSocketClient.java:908) ~[?:?]
	at JDA.jda.core.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:1101) ~[?:?]
	at dep1.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:368) ~[?:?]
	at dep1.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:270) ~[?:?]
	at dep1.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:990) ~[?:?]
	at dep1.ws.client.ReadingThread.handleFrame(ReadingThread.java:749) ~[?:?]
	at dep1.ws.client.ReadingThread.main(ReadingThread.java:108) ~[?:?]
	at dep1.ws.client.ReadingThread.runMain(ReadingThread.java:64) ~[?:?]
	at dep1.ws.client.WebSocketThread.run(WebSocketThread.java:45) ~[?:?]
Caused by: java.lang.ClassNotFoundException: net.kyori.text.serializer.ComponentSerializers
	at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass0(PluginClassLoader.java:66) ~[velocity-proxy-1.0.3-all.jar:1.0.3]
	at com.velocitypowered.proxy.plugin.PluginClassLoader.loadClass(PluginClassLoader.java:43) ~[velocity-proxy-1.0.3-all.jar:1.0.3]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_212-1-ojdkbuild]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.