- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
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.
Question
scraw
Hello there.. i have a java problem..
I try to insert an AUTO-RESTART CODE ,everything was alright untill now.im my config it gives error to a code here it is
public static void loadCustomConfig()
{
final String BYEXCALIBUR = FService.EXCALIBUR_FILE;
try
{
Properties CustomSettings = new Properties();
HERE~> InputStream is = new FileInputStream(new File(BYEXCALIBUR));
CustomSettings.load(is);
is.close();
RESTART_BY_TIME_OF_DAY = Boolean.parseBoolean(CustomSettings.getProperty("EnableRestartSystem", "false"));
RESTART_SECONDS = Integer.parseInt(CustomSettings.getProperty("RestartSeconds", "360"));
RESTART_INTERVAL_BY_TIME_OF_DAY = CustomSettings.getProperty("RestartByTimeOfDay", "20:00").split(",");
{
HERE~> e.printStackTrace();
throw new Error("Failed to Load " + BYEXCALIBUR + " File.") ; <~HERE
}
i found the code here :
https://pastebin.com/T2j9dagL
I Use l2jfrozen as well but rev 1132.
13 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now