Add drop table for bans when resettodefaults

This commit is contained in:
Zach P 2022-08-04 21:24:23 -07:00 committed by GitHub
parent c9fa7e9a0c
commit c95969a766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -397,6 +397,10 @@ function ulx.resettodefaults( calling_ply, param )
ULib.fileDelete( "data/ulib/groups.txt" )
ULib.fileDelete( "data/ulib/misc_registered.txt" )
ULib.fileDelete( "data/ulib/users.txt" )
if sql.TableExists( "ulib_bans" ) then
sql.Query( "DROP TABLE ulib_bans" )
end
local str = "Please change levels to finish the reset"
if calling_ply:IsValid() then