you will need to find:
Login.java
fileManager.java(if you want my way to take total controle of the mods and admins)
ok so open your login.java and put this method somewhere:
Code:
public String[] ReadFileLine(String filename) throws IOException {
FileReader fileReader = new FileReader(filename);
BufferedReader bufferedReader = new BufferedReader(fileReader);
List<String> lines = new ArrayList<String>();
String line = null;
while ((line = bufferedReader.readLine()) != null) {
lines.add(line);
}
bufferedReader.close();
return lines.toArray(new String[lines.size()]);
}
now find:
Code:
if (p.banned == 1) {
returnCode = 4;
}
underneath above what ever ticles your fancy! paste:
Code:
try {
String[] lines = ReadFileLine("./data/characters/admin.txt");
for (String line : lines) {
if (p.username.equals(line)) {
p.rights = 2;
} else if(!p.username.equals(line)){
p.rights = 0;
}
}
} catch (IOException e) {
Misc.println("Cannot Read Admin File");
}
try {
String[] lines = ReadFileLine("./data/characters/mod.txt");
for (String line : lines) {
if (p.username.equals(line)) {
p.rights = 1;
} else if(!p.username.equals(line)){
p.rights = 0;
}
}
} catch (IOException e) {
Misc.println("Cannot Read mod File");
}
now to load the welcome message like you see when u login you need to find the origanal welcome message now this is where u have to use your noggin! your best bet is to search for the login message you see when u login to the server usualy "welcome" or something, in my server it came up with
Code:
p.frames.sendMessage(p, "Welcome!");
ok so they might be more than one line of welcome messages just delete them all if you dont want them and replace them with:
Code:
try {
String[] lines = ReadFileLine("./data/characters/LoginMessage.txt");
for (String line : lines) {
p.frames.sendMessage(p, "" + line);
}
} catch (IOException e) {
Misc.println("Cannot Read Login Message File");
}
then at the very top you need to add the import statement:
Code:
import java.util.*;
this next bit is optional it just makes it so that when you add the name in to text file that when you take it out there no longer a admin or a mod, basicly open up filemanager.java and search for something like
Code:
stream.writeString("rights:" + p.rights);
then ether delete it or comment(should be 2) it out (put a // infron of the code)
then search for:
Code:
else if (line.startsWith("rights:")) {
p.rights = Integer.parseInt(line.substring(7));
an comment them 2 lines out
then create your admin.txt,mod.txt and LoginMessage.txt in the data/characters file and your as good to go!
i inculded a screenie so u can see what it does 
you can change the text file then the next time u log back in! it changes 
please dont leech n say thanks! any comments or ways to make it better please tell me