Jump to content
  • 0

Error In Adding Patch


mikemaster

Question

Hello guys i use acis project..
I tried to add a code manualy everything worked correctly expect this...
 

Properties pvpcolor   = new Properties();
               InputStream is           = new FileInputStream(new File(PVP_COLOR_SYSTEM_CONFIG_FILE));
               pvpcolor.load(is);
               is.close();

someone pls tell me what i need to change in order to make it work <3
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

 

public static final String CLANS_FILE = "./config/clans.properties";
 
// Clans settings
ExProperties clans = load(CLANS_FILE);

 

That's it.

Link to comment
Share on other sites

  • 0

i am still learning the basics... :/

 

something like that?  i have to change the part of the code and make it look like this ?

// Clans settings
ExProperties clans = load(CLANS_FILE);
ALT_CLAN_JOIN_DAYS = clans.getProperty("DaysBeforeJoinAClan", 5);
ALT_CLAN_CREATE_DAYS = clans.getProperty("DaysBeforeCreateAClan", 10);
ALT_MAX_NUM_OF_CLANS_IN_ALLY = clans.getProperty("AltMaxNumOfClansInAlly", 3);
ALT_CLAN_MEMBERS_FOR_WAR = clans.getProperty("AltClanMembersForWar", 15);
ALT_CLAN_DISSOLVE_DAYS = clans.getProperty("DaysToPassToDissolveAClan", 7);
ALT_ALLY_JOIN_DAYS_WHEN_LEAVED = clans.getProperty("DaysBeforeJoinAllyWhenLeaved", 1);
ALT_ALLY_JOIN_DAYS_WHEN_DISMISSED = clans.getProperty("DaysBeforeJoinAllyWhenDismissed", 1);
ALT_ACCEPT_CLAN_DAYS_WHEN_DISMISSED = clans.getProperty("DaysBeforeAcceptNewClanWhenDismissed", 1);
ALT_CREATE_ALLY_DAYS_WHEN_DISSOLVED = clans.getProperty("DaysBeforeCreateNewAllyWhenDissolved", 10);
ALT_MEMBERS_CAN_WITHDRAW_FROM_CLANWH = clans.getProperty("AltMembersCanWithdrawFromClanWH", false);
REMOVE_CASTLE_CIRCLETS = clans.getProperty("RemoveCastleCirclets", true);
Edited by mikemaster
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • 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