mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 18:35:20 +02:00
Sort clients in minetest.get_server_status
and privs in minetest.privs_to_string
(#15023)
This commit is contained in:
@@ -221,6 +221,7 @@ core.register_chatcommand("haspriv", {
|
||||
return true, S("No online player has the \"@1\" privilege.",
|
||||
param)
|
||||
else
|
||||
table.sort(players_with_priv)
|
||||
return true, S("Players online with the \"@1\" privilege: @2",
|
||||
param,
|
||||
table.concat(players_with_priv, ", "))
|
||||
|
Reference in New Issue
Block a user