Clearshot
Display insufficient resources required to repair an item, building or vehicle

Supported Games

Use the hammer or toolgun to display all insufficient resources required to repair an item, building or vehicle to full health.

Permissions

  • clearrepair.use -- Allows player to use if usePermission is enabled in configuration

Configuration

{
  "chatIconID": "0",
  "defaultChatNotification": false,
  "showShortname": false,
  "itemFoundColor": "#87b33a",
  "itemNotFoundColor": "#cb3f2a",
  "usePermission": false,
}
  • chatIconID: SteamID for rust chat icon
  • defaultChatNotification: Display default insufficient resources chat notification
  • showShortname: Display entity or item shortname (used for translations)
  • itemFoundColor: Color if player has item repair amount in inventory
  • itemNotFoundColor: Color if player does not have item repair amount in inventory
  • usePermission: Restrict plugin to a permission

Localization

{
  "ChatPrefix": "<color=#00a7fe>[Clear Repair]</color>",
  "RepairItemName": "<line-height=20>{0}",
  "InsufficientRes": "<size=12>Unable to repair: Insufficient resources.</size><line-indent=5>",
  "ItemAmount": "<size=12>{0}: <color={1}>{2}</color></size>",
  "DefaultChatNotification": "Unable to repair: Insufficient resources.",
  "minicopter.entity": "Minicopter",
  "rowboat": "Row Boat",
  "rhib": "RHIB",
  "scraptransporthelicopter": "Scrap Transport Helicopter"
}
  • RepairItemName:
    • {0} = name of item or building being repaired
  • ItemAmount:
    • {0} = name of item
    • {1} = config.itemFoundColor or config.itemNotFoundColor
    • {2} = total required to repair

Item name translations

Item names can be changed by adding the corresponding item shortname to a ClearRepair language file. To help find item shortnames for the items you would like to change enable the showShortname config option.

Note: Item names are only changed within the ClearRepair plugin.

Language commands

clearrepair.generate_lang (Server only)

Generates a list of all english item names used by rust. Saved to /oxide/data/ClearRepair/GeneratedLang.json.

clearrepair.check_lang <two-letter language code> (Server only)

Check loaded translations for specific language. Ex: clearrepair.check_lang en

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.