Hey all may I give you all my temporary fix until OP/Wulf is able to maintain this? Please see attached. like I said it is a temporary fix.
Loyalty
Moved
Total Downloads: 1,205 - First Release: Jun 24, 2016 - Last Update: Mar 30, 2018
- 5/5, 8 likes
-
-
basically I have taken it from using the
permission.AddUserGroup(player.UserIDString, usergroup.usergroup);
to using
rust.RunServerCommand("oxide.usergroup add " + player.UserIDString + " " + usergroup.usergroup);
This sets the group/permission like you would in console. -
Wulf Community Admin
Click here to see that the command uses this exact, same method. Running the command = using the permission.AddUserGroup method.
My guess is that people are using groups that do not exist, so you may not see a warning for that with the method. A group should exist beforehand, if not it will not add the user to the group. This is something that should be remedied in the plugin if it doesn't already create the group. -
Hi Wulf,
Firstly thank you for your response, we know you are extremely busy.
My apologies for posting a random version of the plugin. -
-
Wulf Community Admin
-
In loyalty I used the /loyalty 1440 addg VIP so players get VIP after been playing for 1440 minutes or 24 hours.
When they reach the 1440 they get told they get added to the VIP group by the Loyalty plugin, as well as I can see them added in the LoyaltyData file, however they´re are not added to the VIP usergroup, getting name tag or kit permission. -
Wulf Community Admin
-
-
OK let me try this again.
Although as Wulf has stated that it does the same thing, this modification to the code does definitely work.
Moderator edit: code removed, use Version History if desired
This is to replace the code in the Void loaded section.
This modification is only for people that feel comfortable to change the plugin .cs file. -
Wulf Community Admin
-
Hi, Could it be possible to add commands as reward in order to use it with Timed Permissions or "loyalty.reset" for exemple or any others possibility?
And an option to decrease point every X time.Last edited by a moderator: Mar 28, 2018 -
Wulf Community Admin
-
After yet again reinstalling and testing out giving usergroup as reward, which failed again despite the plugin listing the player in the given usergroup, I decided to give the suggestion from Zodiak1109 in post #143 a try and replaced the code and the first player I had to reach the required loyalty points was given the usergroup as reward, which I confirmed with the user as having access to the other stuff I have granted the usergroup.
-
Wulf Community Admin
Edit: Aha! The plugin appears to be storing the player data wrong, so it was trying to send the name instead of the player ID.Last edited: Mar 30, 2018 -
Wulf Community Admin
-
Very simple to fix I imagine, but i get this..
Error while compiling: Loyalty.cs(444,115): error CS1525: Unexpected symbol `)', expecting `;' or `}' -
Wulf Community Admin
-
Wulf Community Admin