Anti Troll
Posted: Mon May 29, 2017 11:22 am
If you know more useful commands against trollers, plz add them.
How to:
1. become an admin by asking host for /promote <your name>
2. press the console key
3. enter one of the following commands but change texts like "NameOfTroll" or <NameOfTroll> to the appropriate value
The obvious ones:
/kick <nameOfTroll> <Reason>
/ban <nameOfTroll> <Reason>
Some specific handfull ones:
Remove walls in a range of 100 of your position via deconstructors placed by a specific person named "NameOfTroll" (repeat this command but dont come too close to the actual walls:
/c local pos=game.player.position for i,j in pairs(game.surfaces[1].find_entities_filtered{area = {{pos.x-100, pos.y-100}, {pos.x+100, pos.y+100}}, name= "stone-wall"}) do j.order_deconstruction("NameOfTroll") end
[Not tested yet] Remove deconstructions of "NameOfTroll" in an area of 10.000 from the spawn point:
/c game.surfaces[1].cancel_deconstruct_area{area={{-10000, -10000}, {10000, 10000}} force=game.forces.player["NameOfTroll"]}
Get a list of current players on server (Handy when a troll has a dificult name):
/c for i,j in pairs(game.connected_players) do game.print(j.name) end
-- That it --
If anyone could make a mod that warns/kicks players who order too many deconstructions (with whitelists) would be very warmly welcomed.
How to:
1. become an admin by asking host for /promote <your name>
2. press the console key
3. enter one of the following commands but change texts like "NameOfTroll" or <NameOfTroll> to the appropriate value
The obvious ones:
/kick <nameOfTroll> <Reason>
/ban <nameOfTroll> <Reason>
Some specific handfull ones:
Remove walls in a range of 100 of your position via deconstructors placed by a specific person named "NameOfTroll" (repeat this command but dont come too close to the actual walls:
/c local pos=game.player.position for i,j in pairs(game.surfaces[1].find_entities_filtered{area = {{pos.x-100, pos.y-100}, {pos.x+100, pos.y+100}}, name= "stone-wall"}) do j.order_deconstruction("NameOfTroll") end
[Not tested yet] Remove deconstructions of "NameOfTroll" in an area of 10.000 from the spawn point:
/c game.surfaces[1].cancel_deconstruct_area{area={{-10000, -10000}, {10000, 10000}} force=game.forces.player["NameOfTroll"]}
Get a list of current players on server (Handy when a troll has a dificult name):
/c for i,j in pairs(game.connected_players) do game.print(j.name) end
-- That it --
If anyone could make a mod that warns/kicks players who order too many deconstructions (with whitelists) would be very warmly welcomed.