I am using every veriation of the permission I can think of to revoke the free upgrades for admins. oxide.revoke name buildinggrades.nocost. I got close at one point and I received the following message after an attempt - Player 'name' does not have permission 'buildinggrades.nocost'. But when I had my husband try again, he still had free upgrades. I even removed him as admin, uninstalled the mod, removed the lines out of the code that even mentioned the nocost. Any ideas on how I can get it fixed? I want him to have admin rights so he can fix things if I am at work, but he doesn't like any form of "cheating" that everyone else can't do and wants to get charged for his upgrades.
Unable to stop free cost of upgradesFixed
Sorry for the delay in response as I've just recently adopted this plugin. Give me a few days to get around to doing my initial code cleanup and from there I'll start rewriting everything as it's quite difficult to pick up where someone else left off.
In response to sneakypeach ():I am using every veriation of the permission I can think of to revoke the free upgrades for admins. ...
Sorry for the revial of a possible dead thread, however.
if (increment && !player.IsAdmin && !permission.UserHasPermission(player.UserIDString, PermNoCost))
{
var costs = GetCosts(all_blocks, targetGrade);
if (!CanAffordToUpgrade(costs, player)) return;
PayForUpgrade(costs, player);
}Would have to be changed toif (increment && !permission.UserHasPermission(player.UserIDString, PermNoCost))
{
var costs = GetCosts(all_blocks, targetGrade);
if (!CanAffordToUpgrade(costs, player)) return;
PayForUpgrade(costs, player);
}And it should fix it! In response to sneakypeach ():Thanks! is this new update or would I need to copy and paste it in the json file?
I reached out to Death, and I'll be taking the plugin over shortly.
Adding this fix and another QoL feature as well.
If you don't want to wait, you can make the change in the .CS file beforehand.
Adding this fix and another QoL feature as well.
If you don't want to wait, you can make the change in the .CS file beforehand.
In response to Default ():I reached out to Death, and I'll be taking the plugin over shortly.
Adding this fix and another...
hi has anything been done so we can remove the free upgrades as me and my admins no longer want it to be free we are currently just doing /up and then throwing away a guess as to how much it would be for the upgrade
Locked automatically