-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to execute command #6
Comments
I'm having the same issue, it won't let me use any commands Edit: Apparently it does execute commands, but I just don't get the response |
When using mrcon, Velocity does not respond to 'end' command. (or any command, really). mrcon functions fine on my other 4 papermc servers as well as my old Waterfall instance using BungeeRcon. latest.log only shows the following for attempts: |
hi I have the same problem it executes the command but no response is coming |
I have the same problem here. I run velocity as a daemon on a linux server and I need a way to send commands to it to reload the config. RCON would be perfect but this problem won't let me. |
Same issue here |
So... is this plugin abandoned? I'm having the same issue mentioned above when trying to connect from a variety of different RCON clients. With no communication from the developer since this bug was initially reported over a year ago, should I start looking around for another option? |
I forked it to try to resolve this bug, but in the end I just added Gradle support and for me it worked. If anyone wants to test: https://github.com/TribuFu-Forks/VelocityRcon |
Cool! Would it be possible for you to compile it as a jar? I'll test it tomorrow. |
I agree, a jar file would be awesome for folks like me that don't speak Java. Also, what is Gradle? |
I created a test release: https://github.com/TribuFu-Forks/VelocityRcon/releases/tag/v.1.2-TEST
It's a build system for Java, I prefer it to Maven, it's no big deal. |
Oh, gotcha. Thank you! I'll play around with it soon, too. I've wasted two days trying to figure this out only to find this bug report today. It's nice knowing where the problem is now, but frustrating that it's been known for this long without a fix. |
@guilhermewerner I tried to compile this code with some instructions I found online but I'm not having much luck. Again, I don't speak Java. Can you explain how to compile this or maybe just throw a jar file into the repo? Thanks for your help! |
I left a .jar in the link I sent: https://github.com/TribuFu-Forks/VelocityRcon/releases/tag/v.1.2-TEST |
Wow. I don't know how I missed that... Sorry to bug you and thanks again! |
You solved the problem? |
Technically I didn't change anything in the code. I forked it to investigate, debugged it and used gradle to compile. After that I tested it on my servers and it worked, I've been using this "modified" version for months, and for me it worked, but I only recompiled the project using gradle, nothing else. That's why I asked if more people could test it. |
Maybe you should see this |
For me it is fixed here: https://github.com/TISUnion/VelocityRcon |
All issues? Including the issue @bitter-geek reported? |
I think so... It works with mcrcon and also with mcipc for me. You can try it out yourself. I used https://github.com/TISUnion/VelocityRcon/releases/download/v1.1.1/VelocityRcon.jar The issue with |
Using mcipc you could work around this with something like: from mcipc.rcon.je import Client
import time
def run_command(cmd, *args):
with Client("HOST", PORT, passwd="PASSWORD") as c:
c.run(cmd, *args)
time.sleep(0.2)
return '\n'.join(c.run("glist",).splitlines()[:-2])
if __name__ == '__main__':
res = run_command("lpv", "help")
print(res)
|
Is this going to be decided? I tried all the solutions that I found here, but nothing helped me, there is no connection to rcon at all. |
@DefomCode I don't think this original version is ever going to be fixed. My guess is the developer has abandoned the project. @aws1313 I'll try this soon. Is this your fork? I'm curious what was done to make things work. |
@bitter-geek No, it is not my fork, but I have looked at the code. It seems that problem was that Velocity's responses work with ComponentMessages from KyoriPowered/adventure, but this plugin only uses raw strings. |
@aws1313 Interesting! I gave it a try and the core commands work, but I'm not having any luck with plugin commands. I don't think I'm doing anything wrong, but I'm still pretty new to all of this. When I run the plugin command from the console itself it works fine, but when I run it from rcon it says: |
@bitter-geek Can you give a little bit more information about which commands you are trying and which rcon client you are using? It still works fine for me... |
Hey guys, I stopped Minecraft development years ago and this repo is not active anymore. However, I can accept any pull requests and also give full control to a new maintainer. Hit me up on twitter/YigitDuman |
@aws1313 Sure, I'm trying to use RustyConnector to dynamically add/remove servers to the proxy (necessary for my environment but not working well with Waterfall). I'm also using mcrcon for the commands. It could be some kind of wonky permissions thing (I've seen strange cases where RCON can't run commands in server plugins) but I don't know how to resolve it if that's the case. |
@bitter-geek I was able to reproduce your problem. However, in this case the error is not caused by VelocityCron, but by RustyConnector itself. .requires(source -> source instanceof ConsoleCommandSource) in line 40 in "/plugin/velocity/central/command/CommandRusty.java" in the original repository which forced the command to be sent from console. |
@aws1313 Dang! You're a wizard! I'll give this a try soon. I really appreciate your help! |
Hey @aws1313, I gave the RustyConnector .jar you made a try but it says I can't run it because it was compiled in a version of Java that's too high for my system. I'm running version 17. I know you're not really supporting this plugin, but if you have a few spare minutes and could re-compile the changes you made in a version that's <= 17 that would be awesome. |
@bitter-geek Oops. I'm sorry... I recompiled it with Java 17 and created a new release and you can download the correct .jar file here. I hope it works this time... |
@aws1313 no need to be sorry! I just appreciate the help. It appears to be working now! Thank you! Do you have like a... "buy me a coffee" link or anything? |
@bitter-geek No, I don't have a "Buy me a coffee" or anything like that, but I don't need that anyways. I'm just glad I could help you (and maybe others who will read this in the future) :) |
Hi.I have found a problem when I use mcrcon to connect velocity.
I have tried on the vanilla server and I'm pretty sure it is effective.
But when I use command "glist all" and "lpv help".The command line is not responding.I take a screen shot and the pictures are below.
The Vanilla Server:
Velocity:
So,I use wireshark to capture and analyze packets.And I find this.
It sent back my instructions verbatim!
So,what happened?
The text was updated successfully, but these errors were encountered: