Skip to content

Commit 13f0708

Browse files
Merge pull request #19 from Aperture-Development/MBSync
MBSync Release
2 parents f9fb822 + 3010610 commit 13f0708

File tree

2 files changed

+8
-39
lines changed

2 files changed

+8
-39
lines changed

lua/msync/client_gui/modules/cl_mbsync.lua

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ MSync.modules = MSync.modules or {}
55
* @package MySQL Ban Sync
66
* @author Aperture Development
77
* @license root_dir/LICENCE
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
--[[
@@ -1064,18 +1064,6 @@ MSync.modules[info.ModuleIdentifier].clientPanel = function()
10641064
lastpage_button:SetSize( 185, 20 )
10651065
lastpage_button:SetDisabled(true)
10661066

1067-
1068-
--[[
1069-
TODO:
1070-
- Get Data from server on opening the panel
1071-
- Display data on table
1072-
- Each page has a 20 lines limit
1073-
- selecting the next page should be possible
1074-
- Function to select entry based on their BanID
1075-
- Function to search the data
1076-
- Function to Sort data beforehand
1077-
-
1078-
]]
10791067
--[[
10801068
#############
10811069
FUNCTION PART

lua/msync/server/modules/sv_mbsync.lua

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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
]]
11581141
MSync.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

Comments
 (0)