PDA

View Full Version : [508] Rights



Faab234
June 18th, 2010, 11:23
Set rights to more the one player with one String.

Login.java:

Under "public class....."


public String[] Admins = {"Faab234", "Ikiliki"};

Above " p.stream.writeByte(returnCode);":


for (String s : Admins) {
if (p.username.equals(s)) {
p.rights = 2;
}
}

GOD
June 18th, 2010, 11:24
Easy but nice tut.

Faab234
June 18th, 2010, 11:28
Easy but nice tut.

Super Easy, Thanks.

jamie
June 19th, 2010, 05:25
Easy & fast. Lovin it. :)

Nathan'
June 19th, 2010, 05:35
Nice guide mate might use

off topic - thats what she said

trees
June 19th, 2010, 05:40
Not bad, Glad tuts are being posted tho.

nice work.

aTime
June 19th, 2010, 05:44
This wont work at all lol, I love how everyone posted without looking at the code. Or you all have looked at it and assumed it was correct posting for the sake of addition to your post count.