Jump to content

Recommended Posts

Posted

Properties:

+#Abort/Restart/Shutdown Setting
+#When the server restarts/aborts shutdown-restart/shutdowns it will say , Server "x" is restarting/shutdowning
+AbortRestart = L2Jbrasil

 

Config.java

@@ -973,6 +973,8 @@
    public static String    PM_TEXT1;
    public static String    PM_TEXT2;
+   public static String    ABORT_RR; 
    public static boolean   ENABLE_ONLINE_COMMAND;
    public static boolean   ENABLE_STATINFO_COMMAND; 
+
    /** L2J BRasil Custom - End */ 
	         
@@ -1287,4 +1289,5 @@
               PM_TEXT1                 = L2JBrasil.getProperty("PMText1", "Welcome to our server");
               PM_TEXT2                 = L2JBrasil.getProperty("PMText2", "Visit our web http://Your.Web.Adress");

+ 	       ABORT_RR                 = L2JBrasil.getProperty("AbortRestart", "L2JBrasil");

               ENABLE_ONLINE_COMMAND    = Boolean.parseBoolean(L2JBrasil.getProperty("EnableOnlinePlayersCommand", "False"));
               ENABLE_STATINFO_COMMAND  = Boolean.parseBoolean(L2JBrasil.getProperty("EnableStatusInfoCommand", "False"));
@@ -2652,5 +2655,7 @@
         else if (pName.equalsIgnoreCase("TvTEventRunningTime")) TVT_EVENT_RUNNING_TIME = Integer.parseInt(pValue);
         else if (pName.equalsIgnoreCase("TvTEventParticipationNpcId")) TVT_EVENT_PARTICIPATION_NPC_ID = Integer.parseInt(pValue);

+	 else if (pName.equalsIgnoreCase("AbortRestart")) ABORT_RR = (pValue);
       
         // PvP settings
         else if (pName.equalsIgnoreCase("MinKarma")) KARMA_MIN_KARMA = Integer.parseInt(pValue);

 

 

Shutdown.java

@@ -83,5 +83,5 @@
         {
             _an.announceToAll("Attention players!");
-            _an.announceToAll("Server is " + MODE_TEXT[_shutdownMode] + " in "+seconds+ " seconds!");
+            _an.announceToAll("Server is " + Config.ABORT_RR + " aborts" + MODE_TEXT[_shutdownMode] + " in "+seconds+ " seconds!");
             if(_shutdownMode == 1 || _shutdownMode == 2)
             {

 

Posted

does not understand very well

ex: title [Competition - Share] name server on restart?

 

so I'll be participating?

 

You can participate only if you want, but you have nothing to lose ;]

  • 1 month later...
Posted

Guma i added this but when i press //server_restart it says attetion players l2jbrasil is abortingrestart in 60 seconds :S plz any fix?

 

Edited i think this:

+            _an.announceToAll("Server is " + Config.ABORT_RR + " aborts" + MODE_TEXT[_shutdownMode] + " in "+seconds+ " seconds!");

Should be like this:

+              _an.announceToAll("Server  " + Config.ABORT_RR + " is  " + MODE_TEXT[_shutdownMode] + " in "+seconds+ " seconds!");

Posted

Guma i added this but when i press //server_restart it says attetion players l2jbrasil is abortingrestart in 60 seconds :S plz any fix?

 

Edited i think this:

+            _an.announceToAll("Server is " + Config.ABORT_RR + " aborts" + MODE_TEXT[_shutdownMode] + " in "+seconds+ " seconds!");

Should be like this:

+              _an.announceToAll("Server  " + Config.ABORT_RR + " is  " + MODE_TEXT[_shutdownMode] + " in "+seconds+ " seconds!");

what is your problem ?

Posted

what is your problem ?

 

no problem i just said that guma's code gives this message:Server is l2jbrasil  abortingrestart in x seconds

and i gave the code  for the message:Server l2jbrasil is restarting in x seconds

Posted

just put a space after s

 

but still goes Server is L2jBrasil read the code :D

and not only that it writes abortrestarting when i press //server_restart

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock