Jump to content

How to use RCON on a Forge mod to execute console command?


Chai Sam

Recommended Posts

Here is my trouble. There is a bukkit-forge mixed server core (arclight), but the bukkit overwrited CommandDispatcher, that I can't use BaseCommandBlock to raise my command and result output.

So I tried to use server's RCON. How can I connect RCON session in my mod?

I founded that some GitHub repo provide a library jar file to simply use RCON session, such as this one: jobfeikens/rcon: Minimal RCON client in Java (github.com) and this one: Glavo/rcon-java (github.com)

If I use these RCON lib, how to modify my gradle file to add these jar file to my mod's library? If not so, is there any better way to execute my command and get output on Bukkit server?

Edited by Chai Sam
Link to comment
Share on other sites

7 hours ago, Chai Sam said:

If I use these RCON lib, how to modify my gradle file to add these jar file to my mod's library? If not so, is there any better way to execute my command and get output on Bukkit server?

We are not bukkit, you should probably ask them for help as they probably have more insight into whether you need to do this or not.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.