AlwaysOnline

AlwaysOnline

8.1k Downloads

Feature Request: Velocity Support

JustinDevB opened this issue · 21 comments

commented

Please add support for Velocity. It is quickly gaining traction as a replacement for Bungee. (It has even joined Paper)
https://velocitypowered.com/

commented

+1

Velocity is increasing in popularity and support for waterfall will soon be deprecated.

commented

Hi,

What a coincidence that Mojangs servers are down now ;)
I will try it when they are back online and let you know if it works!

commented

I installed it, of couse the Mojang servers are down.
It loaded correctly, but then it started to give errors.

Log: https://bin.bloom.host/juyibepefo

commented

No more issues after the Mojang servers are online!

commented

No more issues after the Mojang servers are online!

But when enabling MySQL a new error occured.

https://bin.bloom.host/ihapoliduc

commented

Velocity doesn't seem to come with MySQL connector, there are some examples on their forums as for how to get this loaded with velocity.

As for the errors, I have pushed an update to the same link as posted above.

commented

Hi, there are pluginis that use MySQL on Velocity. Like Plan and Luckperms.

Can you take a second look to see if you can implement it within the plugin?

commented

I would rather not bundle it as it would bloat the jar file.

commented

The size of the jar file doesn't matter much, does it?

commented

If each plugin adds the mysql connector, then you can get conflicting versions/classes, alongside bloating the jar.

commented

So how do I enable it? I don't know which forum post your meant.

commented

Hi, I will look into it. Did you made the changes for Velocity also on the GitHub files?

commented

Hi, I tried using the new flags and with the mysql jar in the main folder. But still I get an error. Could you make a second jar for velocity only?

java -Xms128M -Xmx1000M -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -Dterminal.jline=false -Dterminal.ansi=true -cp "velocity.jar:mysql-connector-java-8.0.16.jar"com.velocitypowered.proxy.Velocity -jar velocity.jar

Logs: https://bin.bloom.host/jelizoqixu

commented

Any update on this?

commented

Can you try the link again, I've added an option to add jars to /plugins/alwaysonline/libs

Note:
mysql-connector-java also requires protobuf-java

commented
commented

Hey @GeleVla have you run into any more issues or does this seem like its working well so far (besides MySQL support)?

commented

@TheKrafter
Even though you necro'd a year old thread, the solution is a library called MySQLDriver. Another plugin called "VotingPlugin" requires this library to function on a proxy.
You can find it here.
I recently removed VotingPlugin and its dependencies to find a fault somewhere, and discovered that AlwaysOnline would not load without the library.
I hope this helps someone.

commented

Plugin now supports mysql in velocity by default:
https://github.com/Dablakbandit/always-online/raw/master/output/always-online-latest.jar

Waiting to post to spigot after bukkit approval