1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-11-06 09:09:26 +02:00

Cleanup up utils

This commit is contained in:
Valansch
2018-06-02 18:16:04 +02:00
parent 43d1eb0ad6
commit ac15b60c02
9 changed files with 35 additions and 547 deletions

View File

@@ -1,6 +1,7 @@
local Task = require "utils.Task"
local Event = require "utils.event"
local UserGroups = require "user_groups"
local Utils = require "utils.utils"
function player_print(str)
if game.player then
@@ -367,7 +368,7 @@ local function tempban(cmd)
end
local group = get_group()
game.print(get_actor() .. " put " .. params[1] .. " in timeout for " .. params[2] .. " minutes.")
game.print(Utils.get_actor() .. " put " .. params[1] .. " in timeout for " .. params[2] .. " minutes.")
if group then
group.add_player(params[1])
if not tonumber(cmd.parameter) then