lumien231 / Custom-Main-Menu

A mod that allows you to modify the minecraft main menu
MIT License
67 stars 37 forks source link

Server Player Count #81

Open BuddyGangWithercommunityMember opened 8 years ago

BuddyGangWithercommunityMember commented 8 years ago

Is there any way to display the amount of players on a server like {amount}/{max players} sort of thing. player count

Links! Modpack Website: www.project-pluto.weebly.com (download on home page ^^)

lumien231 commented 8 years ago

Not at the Moment. however since you can load Text from URLs you could put up a webpage that displays the amount of players and then load the Text from that Website.

BuddyGangWithercommunityMember commented 8 years ago

and how would i do that?

lumien231 commented 8 years ago

No clue :P. I don't do web stuff. But i would assume that you can "generate" a web page that displays that using php.

BuddyGangWithercommunityMember commented 8 years ago

like make a plugin that gives out a few lines of code that then is pasted on a web page to be read by the mod?

BuddyGangWithercommunityMember commented 8 years ago

also how do i setup the mod to read the webpage?

lumien231 commented 8 years ago

I'm pretty sure you don't need a plugin for that. You should be able to just use php to check how many users are on a server, i think minecraft has an api for that.

BuddyGangWithercommunityMember commented 8 years ago

thx ill look into it

lumien231 commented 8 years ago

http://minecraft.curseforge.com/projects/custom-main-menu/pages/custom-main-menu/text

BuddyGangWithercommunityMember commented 8 years ago

"changelog": { "text":"web:http://pastebin.com/raw.php?i=MmSCr6zV", "posX" : 2, "posY" : 0, "color" : -1, "alignment" : "left_center" }

found the code thx

BuddyGangWithercommunityMember commented 8 years ago

http://api.serveurs-minecraft.com/

zarzwour commented 8 years ago

Ok to do this you need to have a website hosting a server status API https://mcapi.us/#usage just use that code for your server then have a website host the return status

Shazuli commented 6 years ago

@BuddyGangWithercommunityMember I'm curious about this, how did it go? Did you manage to display your server info correctly on your menu?

SdataG commented 5 years ago

how is this done