Jump to content
  • 0
Twerky

Making my self Owner

Question

Hello,

I am trying to set up my rsps and I cannot make myself the owner. The user data is stored in a .json file and when I close the server, edit that to be playerrights = 2 or whatever, it doesn't give me the rank and just changes back after i've compiled and then started the server again! Please help!

I am not actually sure on the version!

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0
Gotta make sure what revision is it [ 317, 474, 718, 667, 614 etc.. ].

Make sure you're logged out before promoting your self, or check if there is auto save for the characters.

Share this post


Link to post
Share on other sites
  • 0
I'm not really sure, I'm quite new to the whole RSPS thing. I've tried loads of different tuts, but I have different files etc.

Share this post


Link to post
Share on other sites
  • 0
lol ok

Share this post


Link to post
Share on other sites
  • 0
Is that really an adequate reply?

Share this post


Link to post
Share on other sites
  • 0
Make sure the entire server is off before you edit your file so there is NO way it can edit it back during you editing it. However there could be some code that changes it back, you should add in a little code that checks the username of the player and sets the rights. You usually put this where the user receives login information (like "welcome to the server") or whatever.

Share this post


Link to post
Share on other sites
  • 0
Okay, how would that be written?

Share this post


Link to post
Share on other sites
  • 0
This would be for a 639 but you'll get an idea.

If (player.getUsernameEquals("yournamehere"){
Player.setRights(2);
}

Player.java

Share this post


Link to post
Share on other sites
  • 0
Thanks, I'll see what I can do with that!

Share this post


Link to post
Share on other sites

×