Add the same permissions checks later where the actual chat commands are called.
Trouble modifying Kits plugin with permissions
Discussion in 'Rust Development' started by Twistedwheel, Apr 21, 2016.
-
Wulf Community Admin
-
Code:case "give": if (!hasAccess(player)) { SendReply(player, "You don't have access to this command"); return; } SendReply(player, "/kit give PLAYER/STEAMID KITNAME"); break;
[DOUBLEPOST=1461518539][/DOUBLEPOST]Think you could have another look at it and tweak it? At this point I'd happily pay for the fix. -
Wulf Community Admin
-
Code:[PluginReference] Plugin Kits; Kits?.Call("GiveKit", player, "KITNAMEHERE");
-
Wulf Community Admin
-
-
-
Wulf Community Admin
-
-
Wulf Community Admin
-
-
Just curious as to whether this got looked at in the end? Didn't end up putting any more time into it as I couldn't figure it out.
-
Wulf Community Admin
I'll try to get back to you shortly. -