Jump to content
  • 0

Need to change enable-query field in server.properties file for Activity-tracking Discord Bot


johuang50

Question

Hello community,

 

I am trying to write Python script for a Discord Bot to continuously ping my Minehut server using what is called a "query" from Dinnerbone's mcstatus library (https://github.com/Dinnerbone/mcstatus) to monitor and view the Player List (list of players online/tab list) on the server. However, I cannot get a query since it requires for the enable-query field in the server.properties file to be set to true, and of course, the server.properties file on Minehut isn't something you can edit/access directly.

Maybe this is a little bit too far of a topic from Minehut, but I was just wondering if any of you guys could help me figure out how to change this setting without having to do it through server.properties (run an op command or something). Or, if there is no way to change this setting, how could I go about getting the player list without taking a query (not exactly Minehut-related at all and more general server scripting-related but would really help solve my problem). Thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hey there, sadly there is no way to change this setting, but you can use other methods to create your discord bot. 

1. Vixio

2. Minehut API https://api.bennydoesstuff.me/

3. Another API alternative https://mcapi.us/server/status?ip=NAME.minehut.gg

Discord - swirs#0069

In-game name - swiirs

---------------------------------------------------------

[VIP] - July 1st 2020

Support - 9/6/20 | 11/3/20

Helper  - 11/3/20 - 1/10/2021

Moderator - 1/10/2021 - 5/17/2021

Retired - 5/17/2021 - Present

Joined Minehut Mid-late 2015

---------------------------------------------------------

Link to comment
Share on other sites

  • 0

Thanks, yes I actually figured out just a few minutes ago that my endeavor for this is completely unnecessary since there is already a well-established Plugin that you can add to the Minehut server that allows you to send data from the server to a discord bot (a lot easier than a client having to retrieve info from the server through requests, which can always be restricted by the server). There is also a good video explaining how to do this so I think I am all set:

Thanks for the quick reply!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...