Admin bypass for limit?Solved
so maybe if admin oxide group dont have the permission, admins wont be limited
Hello all,
I have been testing this plugin to use on a server.
It seems to be working as intended except for one thing:
I am testing it as an admin, but I have all the permissions revoked. I still have the maximum amount of TCs allowed only for VIPs.
If I give myself default permission I can still have the limits as if I was a VIP.
Is the fact that I am admin making this happen? Even with the perms off?
Just ran some more tests.
In fact the maximums are being respected as set on the JSON file.
What is wrong, and I dont have a way to change it or dont know how, is the message being sent to players.
In this case I set VIPs for 5 and default 3.
A normal player can only place 3 TCs, but will still see the countdown as if it could place 5. Once 3 are reached then it gets the maximum allowed message.
ok to have admins bypass the limit u need the bypass limit assigned only for the admins rank.
i will have a look at the messaging
THANK you for real for replying :)
Also THANK you for using your time to make a plugin for us to enjoy on our servers.
I have checked the main file, the .cs one and I found this:
{
["MaxLimitDefault"] = "You have reached the Default maximum cupboard limit of ",
["MaxLimitVip"] = "You have reached the Vip maximum cupboard limit of ",
["Remaining"] = "Amount of TC's remaining = ",
}, this);
I DO NOT know coding, I understand more or less (less) the logic behind it and that is it.
My question is, if I change those names - "default" and "Vip" to something else, related to my server, will it work? Or by changing here I will have to change a lot more lines down the code?
As a suggestion, and if someday it can be possible to make, if this plugin was using clans, or something similar, to make the blocks be effective for teams and not jusr singular players it would be perfect :)
Again thank you for replying and for your time doing this :)
Yeah it used default as standard reply i have to change it a bit and catch the set limit.
Currently at it and testing on the testserver
i did the counting wrong ^^
SendReply(player, lang.GetMessage("Remaining", this) + (limit - count));
had to change it to this :)
Merged postCurrent version V1.2.1 will fix the message handing the remaining counts issue
You were fast on this :) Thank you.
{
["MaxLimitDefault"] = "You have reached the Default maximum cupboard limit of ",
["MaxLimitVip"] = "You have reached the Vip maximum cupboard limit of ",
["Remaining"] = "Amount of TC's remaining = ",
}, this);
Regarding this, do you think I can change only this line? Instead of default have it called like players, and vip change to for example subs?
If I change the names only in this part will the rest of the code be ok? Or do I need to change this in other lines that you have coded to look for these names default and vip?
you can change the language files in current coding it just adds the remaining or used amount behind the message