Sorry mate, just quit Rust for long time, what I did was setting a custom perm. that allows players to have half crafting rate. If a player doesnt have such perm it will craft the item with default rust rate.nivexIf you paste the snippet then I will add it to a future version
This is the code I had but can be improved so far.
if (!permission.UserHasPermission(crafter.UserIDString, "craftingcontroller.use")){
//task.endTime = 0f;
int itemID = 0;
int amount = 0;
ItemManager.CreateByItemID(itemID, amount);
UpdateCraftingRate();
}
else{
foreach (var bp in blueprintDefinitions){
if (CraftingRate != 0f)
bp.time = Blueprints[bp.targetItem.shortname] * (CraftingRate / 200);
else bp.time = 0f;
}
//task.blueprint.time /= 2;
//UpdateCraftingRate();
}Also the version I had is 2.5.1