Skip to content

Commit

Permalink
Fix warn command message
Browse files Browse the repository at this point in the history
  • Loading branch information
ibot3 committed May 26, 2024
1 parent 32f7282 commit 03ab543
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Fix bans sometimes created multiple times
- Fix unnecessary error message when using the `!warn` command
2 changes: 1 addition & 1 deletion lua/vyhub/lang
Submodule lang updated 3 files
+1 −1 de.json
+1 −1 en.json
+1 −1 fr.json
4 changes: 3 additions & 1 deletion lua/vyhub/server/sv_warning.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,16 @@ local function warn_command(ply, args)
end

VyHub.Warning:create(target:SteamID64(), reason, ply:SteamID64())

return true
end
end

if IsValid(ply) then
VyHub.Util:print_chat(ply, VyHub.lang.warning.cmd_help)
end

return false;
return false
end

hook.Add("vyhub_ready", "vyhub_warning_vyhub_ready", function ()
Expand Down

0 comments on commit 03ab543

Please sign in to comment.