Guma! Posted April 10, 2010 Posted April 10, 2010 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) { Quote
Coyote™ Posted April 10, 2010 Posted April 10, 2010 Not bad, but 1 question: Are those shares for this contest? Quote
Guma! Posted April 10, 2010 Author Posted April 10, 2010 Not bad, but 1 question: Are those shares for this contest? does not understand very well ex: title [Competition - Share] name server on restart? so I'll be participating? Quote
Coyote™ Posted April 10, 2010 Posted April 10, 2010 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 ;] Quote
Boorinio Posted June 3, 2010 Posted June 3, 2010 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!"); Quote
xAddytzu Posted June 3, 2010 Posted June 3, 2010 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 ? Quote
Boorinio Posted June 3, 2010 Posted June 3, 2010 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 Quote
Boorinio Posted June 3, 2010 Posted June 3, 2010 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 Quote
DominiQue Posted June 3, 2010 Posted June 3, 2010 F@ck configs ;D _an.announceToAll(" RATONs is " + MODE_TEXT[_shutdownMode] + " in "+seconds+ " seconds!"); Quote
Fanky Posted July 23, 2010 Posted July 23, 2010 polli xalia den eksigeis tipota ;/ Put tags before post,its not all gr. Quote
HackMeUpReturns Posted July 23, 2010 Posted July 23, 2010 l2jequal has it too since a long time Guma ~> L2JBrasil* Leader Developer *=Timeline c/p & dirty custom code.. Quote
Recommended Posts
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.