Jump to content

Recommended Posts

Posted

Hello folks,

 

In this guide i will teach you how to change the server name when you restart ... normal it says <<The Server is restarting in "x" Seconds./ Minutes.>>

 

what we do ? we checkout our pack ( i will use l2jfree IL ) then we go to our workspace

 

we go inside the folder named L2_GameServer_IL\src\main\java\net\sf\l2j\gameserver and you will see inside Shutdown.java

 

so we are going to open it of course and we go on line 238 & 240 and we will see this

 

       Announcements.getInstance().announceToAll("Server is " + _shutdownMode.getText().toLowerCase() + " in "+seconds+ " seconds!");

       if(Config.IRC_ENABLED && !Config.IRC_ANNOUNCE)

            IrcManager.getInstance().getConnection().sendChan("Server is " + _shutdownMode.getText().toLowerCase() + " in "+seconds+ " seconds!");

 

 

so as you see it says "Server is "  and you can change it to your servers name .. you can do it L2MxC Server is Restarting and inside the Game it will say L2MxC is restarting in "x" Seconds

 

we can change also the Attetion Players!  on line 237

 

       Announcements.getInstance().announceToAll("Attention players!");

 

the "Attention players!" to "Attetion to L2MxC Players!" or whatever you want

 

on line 269 you will see this

 

        Announcements.getInstance().announceToAll("Server aborts " + _shutdownMode.getText().toLowerCase() + " and continues normal operation!");

 

you can change "Server aborts " to "L2MxC Server Aborts " or whatever :)

 

on line 368 and 372 too

 

so you compile the pack via maven and you are Ready

 

well its simple to search in source code there you can change many things ... just for newbies .. good like

 

Credits to me .

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...