Skip to content

Commit

Permalink
Fixed Trello whitelist and blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
Sceleratis committed Jul 7, 2021
1 parent 5e6d6bb commit 92b0ae8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions MainModule/Server/Core/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ return function(Vargs)
end)
end

--// Save all data on server shutdown
game:BindToClose(Core.SaveAllPlayerData);

--// Start API
if service.NetworkServer then
--service.Threads.RunTask("_G API Manager",server.Core.StartAPI)
Expand Down
4 changes: 2 additions & 2 deletions MainModule/Server/Core/HTTP.lua
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ return function(Vargs)
Users = HTTP.Trello.Moderators or {};
}

Variables.Blacklist.Trello = blacklist;
Variables.Whitelist.Trello = whitelist;
Variables.Blacklist.Lists.Trello = blacklist;
Variables.Whitelist.Lists.Trello = whitelist;

for i,v in pairs(service.GetPlayers()) do
if Admin.CheckBan(v) then
Expand Down
4 changes: 1 addition & 3 deletions MainModule/Server/Core/Logs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ return function(Vargs)

MaxLogs = Settings.MaxLogs;

game:BindToClose(function()
Logs.SaveCommandLogs()
end);
game:BindToClose(Logs.SaveCommandLogs);

Logs.Init = nil;
Logs:AddLog("Script", "Logging Module Initialized");
Expand Down
2 changes: 1 addition & 1 deletion MainModule/Server/Server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ return service.NewProxy({__metatable = "Adonis"; __tostring = function() return
if not data or not data.Loader then
warn("WARNING: MainModule loaded without using the loader;")
end

--// Begin Script Loading
setfenv(1,setmetatable({}, {__metatable = unique}))
data = service.Wrap(data or {})
Expand Down
6 changes: 4 additions & 2 deletions MainModule/Server/Shared/Changelog.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
return {
"Version: 222";
"Version: 221.8";
"*Drag edges to expand*";
"";
"[v222 WIP]";
"[v222.8 7.7.2021 14:47 EST]";
"*Fixed Trello whitelist/blacklist not working";
"*Random minor bug fixes";
"(Git/GalacticInspired) Minor changes #383";
"";
"[v221.7 7.7.2021 13:27 EST]";
Expand Down

0 comments on commit 92b0ae8

Please sign in to comment.