Skip to content

Commit

Permalink
Make the text selectable in :serverlist (#1450)
Browse files Browse the repository at this point in the history
  • Loading branch information
WalkerOfBacon authored Mar 15, 2024
1 parent 3f47c57 commit 917977b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MainModule/Server/Plugins/Cross_Server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ return function(Vargs, GetEnv)
Commands.CrossServerList = {
Prefix = Settings.Prefix;
Commands = {"serverlist", "gameservers", "crossserverlist", "listservers"};
Args = {};
Args = {"autoupdate? (default: true)"};
Description = "Attempts to list all active servers (at the time the command was ran)";
AdminLevel = "Admins";
CrossServerDenied = true;
Expand Down Expand Up @@ -215,7 +215,8 @@ return function(Vargs, GetEnv)
Update = "TempUpdate",
UpdateArgs = {{UpdateKey = updateKey}},
OnClose = `client.Remote.PlayerEvent('{updateKey}')`,
AutoUpdate = 1,
AutoUpdate = if args[1] and (args[1]:lower() == "false" or args[1]:lower() == "no") then nil else 1,
TextSelectable = true;
})

delay(500, doDisconnect)
Expand Down

0 comments on commit 917977b

Please sign in to comment.