Jump to content
  • 0
Sign in to follow this  
packthebowl

Can't change to owner

Question

If anyone can help me change myself to owner that'd be awesome! I'm using the Chronicscape source, I've tried removing Baki's name on all the files to mine & also looking into the player file - to then change my rights. I couldn't find the right file to do this..

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
[quote name='packthebowl']If anyone can help me change myself to owner that'd be awesome! I'm using the Chronicscape source, I've tried removing Baki's name on all the files to mine & also looking into the player file - to then change my rights. I couldn't find the right file to do this..[/QUOTE]

Under

[CODE]
Logger.log(this, "Initiated player: " + username + ", pass: " + password);
[/CODE]


In your Player class, add:


[CODE]
//Owner
if (username.equalsIgnoreCase("username goes here")) {
rights = 7;
}
//Admin
if (username.equalsIgnoreCase("username goes here")) {
rights = 2;
}
//Moderator
if (username.equalsIgnoreCase("username goes here")) {
rights = 1;
}
[/CODE]

Replace "username goes here" with your desired username(s). Hope that helps

Share this post


Link to post
Share on other sites
Sign in to follow this  

×