No command to list currently active players on a server?

Post Reply
AmyMoriyama
Member
Posts: 107
Joined: Wed Jun 30, 2021 14:53
GitHub: AmyMoriyama

No command to list currently active players on a server?

by AmyMoriyama » Post

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.

wsor4035
Member
Posts: 182
Joined: Sun Aug 11, 2019 21:23
GitHub: wsor4035
IRC: wsor
In-game: wsor

Re: No command to list currently active players on a server?

by wsor4035 » Post

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

Mineminer
Member
Posts: 325
Joined: Mon Mar 05, 2018 04:05

Re: No command to list currently active players on a server?

by Mineminer » Post

AmyMoriyama wrote:
Mon Jul 19, 2021 23:08
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.


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.

wsor4035
Member
Posts: 182
Joined: Sun Aug 11, 2019 21:23
GitHub: wsor4035
IRC: wsor
In-game: wsor

Re: No command to list currently active players on a server?

by wsor4035 » Post

Mineminer wrote:
Mon Jul 19, 2021 23:16

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. :(
This is incorrect, as this is what the /who command does from the irc mod. further more minetest.get_connected_players() exists
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o

Mineminer
Member
Posts: 325
Joined: Mon Mar 05, 2018 04:05

Re: No command to list currently active players on a server?

by Mineminer » Post

wsor4035 wrote:
Tue Jul 20, 2021 00:44
Mineminer wrote:
Mon Jul 19, 2021 23:16

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. :(
This is incorrect, as this is what the /who command does from the irc mod.
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.
further more minetest.get_connected_players() exists
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.

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.

wsor4035
Member
Posts: 182
Joined: Sun Aug 11, 2019 21:23
GitHub: wsor4035
IRC: wsor
In-game: wsor

Re: No command to list currently active players on a server?

by wsor4035 » Post

Mineminer wrote:
Tue Jul 20, 2021 01:05

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.
servers.minetest.net/list, "irc" reveals 46 servers (off those that report what mods they use) use it.
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o

wsor4035
Member
Posts: 182
Joined: Sun Aug 11, 2019 21:23
GitHub: wsor4035
IRC: wsor
In-game: wsor

Re: No command to list currently active players on a server?

by wsor4035 » Post

j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o

Mineminer
Member
Posts: 325
Joined: Mon Mar 05, 2018 04:05

Re: No command to list currently active players on a server?

by Mineminer » Post

wsor4035 wrote:
Tue Jul 20, 2021 02:25
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
Awesome thanks for the understanding in all of what I said previously. For making a singular mod for this functionality alone. :)

AmyMoriyama
Member
Posts: 107
Joined: Wed Jun 30, 2021 14:53
GitHub: AmyMoriyama

Re: No command to list currently active players on a server?

by AmyMoriyama » Post

This does the trick! This really should be a mod by itself on the contentdb.

wsor4035
Member
Posts: 182
Joined: Sun Aug 11, 2019 21:23
GitHub: wsor4035
IRC: wsor
In-game: wsor

Re: No command to list currently active players on a server?

by wsor4035 » Post

AmyMoriyama wrote:
Tue Jul 20, 2021 20:11

This does the trick! This really should be a mod by itself on the contentdb.
you may do whatever you want with that code under MIT license (feel free to make a mod with it and upload to cdb)
j5uBLfc6NxgersvVj5D5dIsiKDkoQb0o

User avatar
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?

by Miniontoby » Post

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....
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests