1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

disabled antigrief

This commit is contained in:
grilledham 2018-06-25 12:19:50 +01:00
parent 36af281e7c
commit 22fcc0b1a9

View File

@ -3,7 +3,7 @@ local Event = require 'utils.event'
local Token = require 'utils.global_token'
local UserGroups = require 'user_groups'
local Utils = require 'utils.utils'
local Antigrief = require 'antigrief'
--local Antigrief = require 'antigrief'
function player_print(str)
if game.player then
@ -493,7 +493,7 @@ local function pool()
end
end
global.undo_warned_players = {}
--[[ global.undo_warned_players = {}
local function undo(cmd)
if (not game.player) or not game.player.admin then
cant_run(cmd.name)
@ -529,7 +529,7 @@ local function antigrief_surface_tp()
return
end
Antigrief.antigrief_surface_tp()
end
end ]]
local function find_player(cmd)
local player = game.player
@ -623,10 +623,10 @@ commands.add_command(
end
)
commands.add_command('pool', 'Spawns a pool', pool)
commands.add_command('undo', '<player> undoes everything a player has done (Admins only)', undo)
--[[ commands.add_command('undo', '<player> undoes everything a player has done (Admins only)', undo)
commands.add_command(
'antigrief_surface',
'moves you to the antigrief surface or back (Admins only)',
antigrief_surface_tp
)
) ]]
commands.add_command('find-player', '<player> shows an alert on the map where the player is located', find_player)