Skip to content

Commit

Permalink
Update Moderators.luau
Browse files Browse the repository at this point in the history
  • Loading branch information
WalkerOfBacon authored Nov 29, 2024
1 parent e80b3ba commit 9a2b039
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MainModule/Server/Commands/Moderators.luau
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ return function(Vargs, env)
Description = `Same as {Settings.Prefix}n but says whatever you want the title to be instead of your name.`;
AdminLevel = "Moderators";
Function = function(plr: Player, args: {string})
Functions.Notify(service.BroadcastFilter(assert(args[1]:gsub(`"`, ""), "Missing title"), plr), service.BroadcastFilter(assert(args[2], "Missing message") , plr), service.GetPlayers())
Functions.Notify(service.BroadcastFilter(assert(args[1], "Missing title"), plr), service.BroadcastFilter(assert(args[2], "Missing message") , plr), service.GetPlayers())
end
};

Expand Down Expand Up @@ -4373,7 +4373,7 @@ return function(Vargs, env)
assert(args[2], "Missing team name")
for _, v in service.GetPlayers(plr, args[1], { NoFakePlayer = true }) do
for a, tm in service.Teams:GetChildren() do
if string.lower(tm.Name) == string.lower(args[2]) or string.sub(string.lower(tm.Name), 1, #args[2]) == string.lower(args[2]) then
if string.sub(string.lower(tm.Name), 1, #args[2]) == string.lower(args[2]) then
v.Team = tm
if Settings.CommandFeedback then
Functions.Notification("Team", `You are now on the '{tm.Name}' team.`, {v}, 15, "Info") -- Functions.Notification(title,message,player,time,icon)
Expand Down Expand Up @@ -4417,7 +4417,7 @@ return function(Vargs, env)
end

if args[2] then
for s in string.gmatch(args[2]:gsub(`"`, ""), "(%w+)") do
for s in string.gmatch(args[2], "(%w+)") do
table.insert(tArgs, s)
end
end
Expand Down

0 comments on commit 9a2b039

Please sign in to comment.