Skip to content

Commit 7a3da71

Browse files
Added Export command
- Added command to allow easy export of MBSync bans to ULX
1 parent 141190d commit 7a3da71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lua/msync/server/modules/sv_mbsync.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ MSync.modules[info.ModuleIdentifier].init = function( transaction )
515515
end
516516

517517
--[[
518-
Description: Function to get all active bans
518+
Description: This function allows us to export our active bans into ULX
519519
Returns: nothing
520520
]]
521521
MSync.modules[info.ModuleIdentifier].exportBansToULX = function()
@@ -593,6 +593,9 @@ MSync.modules[info.ModuleIdentifier].init = function( transaction )
593593

594594
exportActiveBans:start()
595595
end
596+
concommand.Add("msync."..info.ModuleIdentifier..".export", function( ply, cmd, args )
597+
MSync.modules[info.ModuleIdentifier].exportBansToULX()
598+
end)
596599

597600
--[[
598601
Description: Function to load the MSync settings file

0 commit comments

Comments
 (0)