diff options
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/client/chatcommands.lua | 9 | ||||
-rw-r--r-- | builtin/settingtypes.txt | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/builtin/client/chatcommands.lua b/builtin/client/chatcommands.lua index ed43a6140..201ca4a9b 100644 --- a/builtin/client/chatcommands.lua +++ b/builtin/client/chatcommands.lua @@ -40,8 +40,13 @@ end) core.register_chatcommand("list_players", { description = core.gettext("List online players"), func = function(param) - local players = table.concat(core.get_player_names(), ", ") - core.display_chat_message(core.gettext("Online players: ") .. players) + local player_names = core.get_player_names() + if not player_names then + return false, core.gettext("This command is disabled by server.") + end + + local players = table.concat(player_names, ", ") + return true, core.gettext("Online players: ") .. players end }) diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt index 40db037ea..66d4c324e 100644 --- a/builtin/settingtypes.txt +++ b/builtin/settingtypes.txt @@ -1198,7 +1198,7 @@ server_side_occlusion_culling (Server side occlusion culling) bool true # READ_NODEDEFS: 8 (disable get_node_def call client-side) # LOOKUP_NODES_LIMIT: 16 (limits get_node call client-side to # csm_restriction_noderange) -csm_restriction_flags (Client side modding restrictions) int 30 +csm_restriction_flags (Client side modding restrictions) int 62 # If the CSM restriction for node range is enabled, get_node calls are limited # to this distance from the player to the node. |