This Rust plugin lets players fully repair any structure or deployable with a single hammer hit, and also demolish anything instantly, even after the vanilla demolish window has passed. You can choose whether repairs consume resources or are free. To demolish, players simply hold a configurable key while hitting the entity with a hammer.
Permissions
onehitrepair.repair- Required to use the one-hit repair feature (when permissions are enabled).onehitrepair.demolish- Required to use the one-hit demolition feature (when permissions are enabled).
Configuration
JSON:
{
"Version": "1.0.0",
"Enable Permissions": true,
"Repair Settings": {
"Enabled": true,
"Require Building Privilege": true,
"Respect Recently Damaged Cooldown": true,
"Respect Vanilla Single-Hit Heal Cap (50 HP)": false,
"Charge Resources": true,
"Affect Non-Building Entities When Free": true
},
"Demolition Settings": {
"Enabled": true,
"Require Building Privilege": true,
"Activation Key": "RELOAD",
"Activation Window Seconds": 0.5,
"Show Tip On Hammer Equip": true,
"Tip Cooldown Seconds": 120.0,
"Tip Style (0=Blue, 1=Red)": 2
}
}
Enable Permissions- If true, players need permission to repair or demolish. If false, anyone can use the features.
Enabled- Enables or disables one-hit repair entirely.Require Building Privilege- If true, players must be inside their building privilege to repair.Respect Recently Damaged Cooldown- If true, prevents repair if the structure was recently damaged (like vanilla cooldown).Respect Vanilla Single-Hit Heal Cap- If true, limits each hit to a maximum of 50 HP healed.Charge Resources- If true, consumes repair resources normally. If false, repair is free.Affect Non-Building Entities When Free- WhenCharge Resourcesis false, this decides if free repair should also work on deployables like turrets, boxes, etc.
Enabled- Enables or disables one-hit demolition.Require Building Privilege- If true, players must be inside building privilege to demolish.Activation Key- The key players must press (e.g.RELOAD) to activate demolition mode. You can also use:USE(e.g., the E key)SPRINT(Shift)JUMP(Spacebar)DUCK(Ctrl)FIRE_SECONDARY(Right click)
Activation Window Seconds- Time window (in seconds) after pressing the key where demolition is active.Show Tip On Hammer Equip- If true, displays a tip on screen when players equip a hammer explaining how to demolish.Tip Cooldown Seconds- How long to wait before the tip is shown again.Tip Style- Sets the visual style of the demolition tip toast.
Localization
JSON:
{
"Tip.Demolition": "Hold <color=#ffd800>{0}</color> while holding the hammer to <b>demolish</b> with one hit."
}