Skip to content

Commit

Permalink
Switch SetMOTDPage to use RunConsoleCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
FPtje committed Nov 30, 2024
1 parent be404e9 commit 56f5bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemode/modules/fadmin/fadmin/motd/sv_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function FAdmin.MOTD.SetMOTDPage(ply, cmd, args)
return false
end
if ply:EntIndex() ~= 0 and (not ply.IsSuperAdmin or not ply:IsSuperAdmin()) then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end
game.ConsoleCommand("_FAdmin_MOTDPage \"" .. args[1] .. "\"\n")
RunConsoleCommand("_FAdmin_MOTDPage", args[1])
file.Write("FAdmin/CurMOTDPage.txt", args[1])

return true, args[1]
Expand Down

0 comments on commit 56f5bec

Please sign in to comment.