mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Removed Gohst Tile Event as permmsions can haddle it
This commit is contained in:
12
control.lua
12
control.lua
@@ -366,18 +366,6 @@ script.on_event(defines.events.on_marked_for_deconstruction, function(event)
|
|||||||
event.entity.destroy()
|
event.entity.destroy()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
script.on_event(defines.events.on_built_entity, function(event)
|
|
||||||
local eplayer = game.players[event.player_index]
|
|
||||||
local timeForRegular = 120
|
|
||||||
if getRank(eplayer).power > 5 then
|
|
||||||
if event.created_entity.type == "tile-ghost" then
|
|
||||||
event.created_entity.destroy()
|
|
||||||
eplayer.print("You are not allowed to do this yet, play for player bit longer. Try: " .. math.floor((timeForRegular - ticktominutes(eplayer.online_time))) .. " minutes")
|
|
||||||
callRank(eplayer.name .. " tryed to place concrete/stone with robots")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
----------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------
|
||||||
---------------------------Other Events-------------------------------------------------
|
---------------------------Other Events-------------------------------------------------
|
||||||
----------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user