Yuuki_Yukari Posted November 15, 2019 Share Posted November 15, 2019 (edited) Heya fellow Discord Bot developers and MineHut community! I've been trying to make a bot on discord to check on our server status, like if its online or offline, how many people are playing, and so on. But for some reason if I try the minecraft API to check on servers my log gives out "0 of 10 players are playing" though im logged in. Also our server has more then 10 slots open. I've came to the solution, that this may be caused by Minehut itself duo bot protection in any case. But I'm pretty sure there is still a solution. Doesn't Minehut have any kind of API to check on our own servers directlly? I hope you guys get what I mean. EDIT: Apperentlly after 10 minutes it decided I'm finally online. But that doesn't fix the max players. Wish you a great day. Love, Yuuki Edited November 15, 2019 by Yuuki_Yukari Link to comment Share on other sites More sharing options...
AWorthySon Posted November 15, 2019 Share Posted November 15, 2019 Heyo! Please consider using the Skript addon: Vixio. Here are the docs: https://olyno.github.io/Vixio/documentation/ Feel free to mess around with it. I'm not sure about the API, but this is something you could use as an alternative. Link to comment Share on other sites More sharing options...
Santio71 Posted November 15, 2019 Share Posted November 15, 2019 Minehut does have a API you can use in Javascript, example: http://prntscr.com/pxfvkm If you want to explore more about the API, check out the only doc I could find @ https://api.bennydoesstuff.me/ (Note that this API is outdated and authentication requests may not work) Santio71 -> Developer Development Lead for Minehut Events Team First Joined: Jan. 24, 2016 [VIP]: ~2019 Joined CET: July 22, 2019 (About 1.75 years ago) [PRO]: May 6, 2020 Rejoined CET: June 15, 2020 Moderator: December 19, 2022 Link to comment Share on other sites More sharing options...
DeltaRays Posted November 16, 2019 Share Posted November 16, 2019 On 11/15/2019 at 4:02 PM, Santio71 said: Minehut does have a API you can use in Javascript, example: http://prntscr.com/pxfvkm If you want to explore more about the API, check out the only doc I could find @ https://api.bennydoesstuff.me/ (Note that this API is outdated and authentication requests may not work) I made updated api docs, here they are: https://deltarays.herokuapp.com/minehut/apidocs Link to comment Share on other sites More sharing options...
DeltaRays Posted November 16, 2019 Share Posted November 16, 2019 On 11/15/2019 at 1:56 PM, Yuuki_Yukari said: Heya fellow Discord Bot developers and MineHut community! I've been trying to make a bot on discord to check on our server status, like if its online or offline, how many people are playing, and so on. But for some reason if I try the minecraft API to check on servers my log gives out "0 of 10 players are playing" though im logged in. Also our server has more then 10 slots open. I've came to the solution, that this may be caused by Minehut itself duo bot protection in any case. But I'm pretty sure there is still a solution. Doesn't Minehut have any kind of API to check on our own servers directlly? I hope you guys get what I mean. EDIT: Apperentlly after 10 minutes it decided I'm finally online. But that doesn't fix the max players. Wish you a great day. Love, Yuuki https://deltarays.herokuapp.com/minehut/apidocs/ for the updated minehut api docs. If you want to view server data using the api you can't use vixio on minehut as sending requests on minehut requires reqn (you can send some basic get requests with skquery but if you want to be able to use all methods (GET, POST, PUT, ...) you need to use a service that's out of minehut), you could code your own discord.js bot and host it somewhere and then use the node-fetch node package to send requests to the api Link to comment Share on other sites More sharing options...
DeltaRays Posted November 16, 2019 Share Posted November 16, 2019 Btw I'm currently updating it to also show you examples of how to call it in JavaScript Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now