mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
disabled antigrief
This commit is contained in:
parent
36af281e7c
commit
22fcc0b1a9
@ -3,7 +3,7 @@ local Event = require 'utils.event'
|
|||||||
local Token = require 'utils.global_token'
|
local Token = require 'utils.global_token'
|
||||||
local UserGroups = require 'user_groups'
|
local UserGroups = require 'user_groups'
|
||||||
local Utils = require 'utils.utils'
|
local Utils = require 'utils.utils'
|
||||||
local Antigrief = require 'antigrief'
|
--local Antigrief = require 'antigrief'
|
||||||
|
|
||||||
function player_print(str)
|
function player_print(str)
|
||||||
if game.player then
|
if game.player then
|
||||||
@ -493,7 +493,7 @@ local function pool()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
global.undo_warned_players = {}
|
--[[ global.undo_warned_players = {}
|
||||||
local function undo(cmd)
|
local function undo(cmd)
|
||||||
if (not game.player) or not game.player.admin then
|
if (not game.player) or not game.player.admin then
|
||||||
cant_run(cmd.name)
|
cant_run(cmd.name)
|
||||||
@ -529,7 +529,7 @@ local function antigrief_surface_tp()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
Antigrief.antigrief_surface_tp()
|
Antigrief.antigrief_surface_tp()
|
||||||
end
|
end ]]
|
||||||
|
|
||||||
local function find_player(cmd)
|
local function find_player(cmd)
|
||||||
local player = game.player
|
local player = game.player
|
||||||
@ -623,10 +623,10 @@ commands.add_command(
|
|||||||
end
|
end
|
||||||
)
|
)
|
||||||
commands.add_command('pool', 'Spawns a pool', pool)
|
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(
|
commands.add_command(
|
||||||
'antigrief_surface',
|
'antigrief_surface',
|
||||||
'moves you to the antigrief surface or back (Admins only)',
|
'moves you to the antigrief surface or back (Admins only)',
|
||||||
antigrief_surface_tp
|
antigrief_surface_tp
|
||||||
)
|
) ]]
|
||||||
commands.add_command('find-player', '<player> shows an alert on the map where the player is located', find_player)
|
commands.add_command('find-player', '<player> shows an alert on the map where the player is located', find_player)
|
||||||
|
Loading…
Reference in New Issue
Block a user