No command to list currently active players on a server?
-
- Member
- Posts: 107
- Joined: Wed Jun 30, 2021 14:53
- GitHub: AmyMoriyama
No command to list currently active players on a server?
Am I oblivious/dumb or is there no command to simply list the currently online players? There doesn't seem to be a mod to do this either.
Re: No command to list currently active players on a server?
minetest command /status provides this, however as with all commands, other mods/games can override it. the irc mod also provides a /who command
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o
Re: No command to list currently active players on a server?
AmyMoriyama wrote: ↑Mon Jul 19, 2021 23:08Am I oblivious/dumb or is there no command to simply list the currently online players? There doesn't seem to be a mod to do this either.
No you are actually correct, there isn't such a thing in the Minetest Game nor a mod that gives you such command that only display current players. :(
The only two "workaround" that I am aware are...
A. Just check with the /status command
B. Install https://content.minetest.net/packages/W ... zutilpack/ and configure the szutil_nowonline componet of the mod pack (you can simply negate the "excess" mods that you don't want in the pack) as closely as possible. An idea would to do it so it only does the read out every several hours OR if a player joins/leaves. That way your logs aren't spammed every half hour.
Hope that helps you with what's your options are.
Re: No command to list currently active players on a server?
This is incorrect, as this is what the /who command does from the irc mod. further more minetest.get_connected_players() exists
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o
Re: No command to list currently active players on a server?
Does it or connects to an IRC services? Because if so a number of datacenters and/or providers may not allow this mod to be ran. Even if not a IRC service itself.
Unfortunately that does not within the scope of the question. This user specifically if there were an existing in game command or off the shelves mod which does this.further more minetest.get_connected_players() exists
That is like responding to a user that requesting what's fan to get and saying that they can just rig one up themselves with a DC motor and blades.
Re: No command to list currently active players on a server?
servers.minetest.net/list, "irc" reveals 46 servers (off those that report what mods they use) use it.
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o
Re: No command to list currently active players on a server?
here, see https://gist.github.com/wsor4035/3c4ac1 ... 3c9d52a926 or https://github.com/minetest-mods/irc/bl ... ua#L40-L64 will work with minor modifications
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o
Re: No command to list currently active players on a server?
Awesome thanks for the understanding in all of what I said previously. For making a singular mod for this functionality alone. :)wsor4035 wrote: ↑Tue Jul 20, 2021 02:25here, see https://gist.github.com/wsor4035/3c4ac1 ... 3c9d52a926 or https://github.com/minetest-mods/irc/bl ... ua#L40-L64 will work with minor modifications
-
- Member
- Posts: 107
- Joined: Wed Jun 30, 2021 14:53
- GitHub: AmyMoriyama
Re: No command to list currently active players on a server?
This does the trick! This really should be a mod by itself on the contentdb.wsor4035 wrote: ↑Tue Jul 20, 2021 02:25here, see https://gist.github.com/wsor4035/3c4ac1 ... 3c9d52a926
Re: No command to list currently active players on a server?
you may do whatever you want with that code under MIT license (feel free to make a mod with it and upload to cdb)AmyMoriyama wrote: ↑Tue Jul 20, 2021 20:11
This does the trick! This really should be a mod by itself on the contentdb.
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o
- Miniontoby
- Member
- Posts: 616
- Joined: Fri Mar 01, 2019 19:25
- GitHub: Miniontoby
- IRC: Miniontoby
- In-game: Miniontoby
- Location: The Netherlands
Re: No command to list currently active players on a server?
I got client side mod to do it. I can share it with you if wanted, but the mod is not 100% reliable because 90% of servers have not the abbility for csm to read player cpunt and then it tries to grep from the joins and leaves....
Who is online
Users browsing this forum: No registered users and 1 guest