-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathcommands.lua
More file actions
22 lines (20 loc) · 757 Bytes
/
commands.lua
File metadata and controls
22 lines (20 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local Interface = require('__stdlib__/stdlib/scripts/interface')
require('__stdlib__/stdlib/utils/string')
local function commands(event)
local player = game.players[event.player_index]
if player.admin then
local params = event.parameter and event.parameter:split(' ') or {}
if params[1] == 'reset' then
if params[2] == 'mod' then
Interface.reset_mod(true)
elseif params[2] == 'cell_queue' then
Interface.reset_queue('cell_queue')
elseif params[2] == 'nano_queue' then
Interface.reset_queue('nano_queue')
end
elseif params[1] == 'count' then
Interface.count_queue(params[2])
end
end
end
return commands