Jump to content

Question

Posted

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

9 answers to this question

Recommended Posts

  • 0
Posted

 

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

 

That's it.

  • 0
Posted (edited)

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
  • 0
Posted (edited)

Yup. Just change the name of property to w/e you want.

Edited by SweeTs
  • 0
Posted

okey done fixed thanks to you Sweets <3 i appreciate it a lot 

Locked then, if you have any other roblem feel free to open a new thread!

Guest
This topic is now closed to further replies.


×
×
  • Create New...