Just chiming in that as of 3:13 pm (eastern) today, I've downloaded the most recent version of the plugin and it *does not work* as intended. You can activate/use bgrade inside of building blocked areas.
BGrade
Moved
Total Downloads: 18,674 - First Release: Apr 8, 2015 - Last Update: Mar 15, 2018
- 5/5, 52 likes
-
For example the 2 things you would need to change in the plugin are:
Code:if (!player.CanBuild() && !HasAnyPerm(player)) return;
and
Code:if (!player.CanBuild() && !HasPerm(player, "all") && !HasPerm(player, args[0])) { SendReply(player, GetMessage("BGRADE_NOPERM", steamId)); return; }
Code:if (!player.CanBuild()) return;
Code:if (!player.CanBuild()) { SendReply(player, GetMessage("BGRADE_NOPERM", steamId)); return; }
-
Would rather just have the plugin updated and supported by developer.
-
Wulf Community Admin
-
I won't be fooling around with the innards of the plugin, I've never had any luck with that. Thank you for all you do, plugin developers !!!
-
-
Hmm, it seems indeed, there should || (or) instead of && (and) in this two (three?) lines. As right now it check if "player can't build AND don't have permission to build"
Someone test this version, if it works fine then i'll update bit later plugin (or wulf can also do this) -
-
-
Wulf Community Admin
-
-
Wulf Community Admin
-
Wulf Community Admin
Wulf updated Automatic Build Grades with a new update entry:
0.0.13
-
Code:
Failed to run a 30.00 timer in 'AutoGrades v0.0.13' (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.AutoGrades+PlayerGrades].get_Item (System.String key) [0x00000] in <filename unknown>:0 at Oxide.Plugins.AutoGrades+<UpdateTimer>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0 at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
Last edited by a moderator: May 9, 2017 -
Wulf Community Admin
Wulf updated Automatic Build Grades with a new update entry:
0.0.14
-
@Wulf i looked code and you removed four important lines from "OnServerInitialized" when cleanup code from old code.
Code:if (LoadDefault || Config["Block Construct and Refund"] == null || gperm) { permission.GrantGroupPermission("admin", "autogrades.all", this); permission.GrantGroupPermission("admin", "autogrades.nores", this); }
This lines actually add default permissions on first plugin install (for admins), without them this plugin will do nothing if install it on fresh server. Not sure if this is good or bad, but originally it was made just for admins) Anyway thanks for update, i just don't have much time right now to do it myself.
@Suslik When this happens? -
Wulf Community Admin
-
@Wulf not sure actually, right now description just saying that "By default works only for admins with no resource consume (only wood for twig part), but you can change that via oxide permissions.", i can just update it to something like "You need assign permissions manually to use this plugin" or so. But as i said originally it was made for admins only) So you can install it and use as admin without configure anything else.
Last edited by a moderator: May 9, 2017 -
-
Wulf Community Admin