setRights(2);
btw why are u using html tags in ur header
|
So I just downloaded the "InterventionX" server and got it up and running, my friend joined but im having trouble making him admin, I kept saying to him theres a command which i can use to make you admin but wasn't too sure.
If anyone could tell me how to make someone else a admin that would be great!
search for "Welcome to" in player.java
add this:
if (getUsername().equalsIgnoreCase("UR USER")) {
setrRights(2);
}
below or above
in administrator.java
or commands.java or owner.java
make a command
Code:if (cmd[0].equals("giveadmin")) { name = ""; for (int i = 1; i < cmd.length; i++) { name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); } target = World.getPlayerByDisplayName(name); if (target == null) { return true; } target.setRights(7);// change the 7 if not admin return true; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |