Skip to content

Commit

Permalink
Added pause and unpause commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 5, 2024
1 parent 3a9409c commit 3c7f404
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,20 @@ end)

-- Binds
local function bindHandler(cmd, ...)
if cmd == "pause" then
RGMercConfig.Globals.PauseMain = true
return
end

if cmd == "unpause" then
RGMercConfig.Globals.PauseMain = false
return
end

local results = RGMercModules:execAll("HandleBind", cmd, ...)

local processed = false

for _, r in pairs(results) do processed = processed or r end

if not processed then
Expand Down
2 changes: 1 addition & 1 deletion version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '45a3bcc 2024-01-04' }
return { commitId = '3a9409c 2024-01-04' }

0 comments on commit 3c7f404

Please sign in to comment.