void OnItemRepair(BasePlayer player, Item item)
{
if (permission.UserHasPermission(player.UserIDString, perm))
{
item.maxCondition = 100f;//just in case the item already lost durability
item.info.condition.maintainMaxCondition = true;//so it doesn't lose any more
}
}Not all the items has max condition 100. Ex: AK
"shortname": "rifle.ak",
"condition": 150.0,
"maxCondition": 150.0,