Is there a plugin that repairs all structures on the server? instead of my going around repairing everyone one by one?
Solved Repair all structures
Discussion in 'Plugin Requests' started by Andie, Jun 16, 2015.
-
Something like this would do it:
Code:[ChatCommand("repair")] void chatCommand_repair(BasePlayer player, string command, string[] args) { if (player.net.connection.authLevel == 1 || player.net.connection.authLevel == 2 ) { List<BuildingBlock> allBlocks = Component.FindObjectsOfType<BuildingBlock>().ToList(); foreach(BuildingBlock block in allBlocks) { block.health = block.MaxHealth(); } } }
-
[Oxide] 9:58 PM [Error] repair plugin failed to compile!
[Oxide] 9:58 PM [Error] repair.cs(2,8): error CS1525: Unexpected symbol `void' -
It was example code, not a fully made plugin.
-
-
I can make it a plugin and upload it if you want, or you can use this: (Do remove this Wulf if this is not allowed)
-
-
Wulf Community Admin
-
Post as a plugin I think it would get some downloads lol
-
Let me know -
Make it please lol I NEED THIS!
-
Sounds like this is no longer needed perhaps? http://oxidemod.org/plugins/nodecay.1160/
-
Still needed to repair current ones
-
How do you get this to work? The txt he posted? I would like it for my server
-
Note: Naming it like above is important since the class is called RepairAll but you can change that in the code and rename it like you would want your file named
Then run /repair as chat command -
Awesome got it to work, but it doesnt repair high stone gates, any reason?
-
-
Everything you can build with the building plan should be affected by this plugin
-
-
@Wulf
The question got answered
Solved.