Well, I figured since I it is nothing special, I might as show the community something.
I do not do many tutorials, so I figured I would release this - since I might be doing away with it?
This interface is mainly to welcome the players, let them know what is going on, and to notify them of a possibly slight delay with the cache loading [DUE TO THE 718/742 BLACKSCREENING].
I figured a screenshot of what you are going to be added might help.
FIRST:
Navigate through your source files, and find "PLAYER.JAVA". Double-Click it!
SECOND:
Then paste the following code inside:
Code:
/***Welcoming Login Interface***/
private void welcomeInterface() {
getInterfaceManager().sendInterface(1225);
getPackets().sendIComponentText(1225, 8, "<shad=0>Welcome to" + Settings.SERVER_NAME);
getPackets().sendIComponentText(1225, 5,
"Welcome! We are delighted you are here.");
getPackets().sendIComponentText(1225, 21,
"We would like to notify you that if your gameplay screen is black upon login, just give it some time to load the cache entirely.");
getPackets().sendIComponentText(1225, 22,
"While the game is continuing to load, why not visit our forums? You could take the time to register, view guides, read the rules, and meet new friends! We hope you enjoy" + Settings.SERVER_NAME + "!");
getPackets().sendIComponentText(1225, 20, "Onwards!");
}
THIRD:
Now search for your "public void run() {" method, where it has your welcoming messages and such.
Somewhere inside there, add the following:
Code:
if (!starter = true) { //CHANGE TO 1 IF YOU USE INTS [1=TRUE;0=FALSE]
this.welcomeInterface();
}
AFTER:
SAVE AND COMPILE - DONE!