@@ -5,7 +5,7 @@ MSync.modules = MSync.modules or {}
55 * @package MySQL Ban Sync
66 * @author Aperture Development
77 * @license root_dir/LICENSE
8- * @version 0 .0.6
8+ * @version 1 .0.0
99]]
1010
1111--[[
@@ -15,7 +15,7 @@ local info = {
1515 Name = " MySQL Ban Sync" ,
1616 ModuleIdentifier = " MBSync" ,
1717 Description = " Synchronise bans across your servers" ,
18- Version = " 0 .0.6 "
18+ Version = " 1 .0.0 "
1919}
2020
2121--[[
@@ -492,11 +492,6 @@ MSync.modules[info.ModuleIdentifier].init = function( transaction )
492492 -- Do nothing
493493 end
494494 end
495-
496- --[[
497- TODO: After recieving data, we need to write the current ban data into ULib
498- ]]
499-
500495 end
501496
502497 getActiveBansQ .onError = function ( q , err , sql )
@@ -911,8 +906,6 @@ MSync.modules[info.ModuleIdentifier].ulx = function()
911906 MSync .modules [info .ModuleIdentifier ].Chat = MSync .modules [info .ModuleIdentifier ].Chat or {}
912907
913908 --[[
914- TODO: The whole Command
915- Expected behaviour:
916909 Without any argument, open ban GUI
917910 With arguments, run ban command
918911
@@ -963,8 +956,6 @@ MSync.modules[info.ModuleIdentifier].ulx = function()
963956 BanPlayer :help ( " Opens the MBSync GUI ( without parameters ) or bans a player" )
964957
965958 --[[
966- TODO: The whole Command
967- Expected behaviour:
968959 ban the targeted steamid
969960
970961 Arguments:
@@ -1012,11 +1003,9 @@ MSync.modules[info.ModuleIdentifier].ulx = function()
10121003 BanPlayer :addParam { type = ULib .cmds .StringArg , hint = " true/false, if the player should be banned on all servers" , ULib .cmds .optional }
10131004 BanPlayer :addParam { type = ULib .cmds .StringArg , hint = " reason" , ULib .cmds .optional , ULib .cmds .takeRestOfLine , completes = ulx .common_kick_reasons }
10141005 BanPlayer :defaultAccess ( ULib .ACCESS_SUPERADMIN )
1015- BanPlayer :help ( " Opens MSync Settings ." )
1006+ BanPlayer :help ( " Bans the given SteamID ." )
10161007
10171008 --[[
1018- TODO: The whole Command
1019- Expected behaviour:
10201009 unban a user with the given steamid
10211010
10221011 Arguments:
@@ -1038,11 +1027,9 @@ MSync.modules[info.ModuleIdentifier].ulx = function()
10381027 local BanPlayer = ulx .command ( " MSync" , " msync." .. info .ModuleIdentifier .. " .unBanID" , MSync .modules [info .ModuleIdentifier ].Chat .unBanID , " !munban" )
10391028 BanPlayer :addParam { type = ULib .cmds .StringArg , hint = " steamid" }
10401029 BanPlayer :defaultAccess ( ULib .ACCESS_SUPERADMIN )
1041- BanPlayer :help ( " Opens MSync Settings ." )
1030+ BanPlayer :help ( " Unbans the given SteamID ." )
10421031
10431032 --[[
1044- TODO: The whole Command
1045- Expected behaviour:
10461033 check if a player is banned
10471034
10481035 Arguments:
@@ -1086,11 +1073,9 @@ MSync.modules[info.ModuleIdentifier].ulx = function()
10861073 local BanPlayer = ulx .command ( " MSync" , " msync." .. info .ModuleIdentifier .. " .checkBan" , MSync .modules [info .ModuleIdentifier ].Chat .checkBan , " !mcheck" )
10871074 BanPlayer :addParam { type = ULib .cmds .StringArg , hint = " steamid" }
10881075 BanPlayer :defaultAccess ( ULib .ACCESS_SUPERADMIN )
1089- BanPlayer :help ( " Opens MSync Settings ." )
1076+ BanPlayer :help ( " Checks if there is currently a active ban for given SteamID ." )
10901077
10911078 --[[
1092- TODO: The whole Command
1093- Expected behaviour:
10941079 opens the ban table
10951080
10961081 Arguments:
@@ -1103,11 +1088,9 @@ MSync.modules[info.ModuleIdentifier].ulx = function()
11031088 end
11041089 local BanPlayer = ulx .command ( " MSync" , " msync." .. info .ModuleIdentifier .. " .openBanTable" , MSync .modules [info .ModuleIdentifier ].Chat .openBanTable , " !mbsync" )
11051090 BanPlayer :defaultAccess ( ULib .ACCESS_SUPERADMIN )
1106- BanPlayer :help ( " Opens MSync Settings ." )
1091+ BanPlayer :help ( " Opens the MBSync ban table, this table only shows active bans ." )
11071092
11081093 --[[
1109- TODO: The whole Command
1110- Expected behaviour:
11111094 Edits the ban with the given banID
11121095
11131096 Arguments:
@@ -1157,8 +1140,6 @@ end
11571140]]
11581141MSync .modules [info .ModuleIdentifier ].hooks = function ()
11591142 --[[
1160- TODO: Improove hook
1161-
11621143 This hook starts the timers for the asynchronous ban data loading and the check if one of the online players has been banned
11631144 ]]
11641145 timer .Create (" msync." .. info .ModuleIdentifier .. " .getActiveBans" , MSync .modules [info .ModuleIdentifier ].settings .syncDelay , 0 , function ()
0 commit comments