Guest User

Untitled

a guest
Jul 5th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.13 KB | None | 0 0
  1. package events.TvT;
  2.  
  3. import java.util.HashMap;
  4. import java.util.concurrent.ConcurrentHashMap;
  5.  
  6. import l2r.gameserver.utils.GArray;
  7. import l2r.gameserver.utils.Util;
  8.  
  9. import org.slf4j.Logger;
  10. import org.slf4j.LoggerFactory;
  11.  
  12. public class Configs implements Comparable<Object>
  13. {
  14.     @SuppressWarnings("unused")
  15.     private static final Logger _log = LoggerFactory.getLogger(Configs.class);
  16.     public long START_TIME = 0;
  17.     public int TIME_TO_END_BATTLE = 120;
  18.     public int TIME_MAGE_SUPPORT = 10;
  19.     public int MIN_PARTICIPANTS = 2;
  20.     public int MAX_PARTICIPANTS = 10;
  21.     public int TEAM_COUNTS = 0;
  22.     public String ST_REWARD_ITEM_ID = "";
  23.     public String ST_REWARD_COUNT = "";
  24.     public GArray<Integer> LIST_MAGE_MAG_SUPPORT = new GArray<Integer>();
  25.     public GArray<Integer> LIST_MAGE_FAITER_SUPPORT = new GArray<Integer>();
  26.     public GArray<String> TEAM_NAME = new GArray<String>();
  27.     public boolean STOP_ALL_EFFECTS = true;
  28.     public boolean ALLOW_TAKE_ITEM = false;
  29.     public boolean ALLOW_KILL_BONUS = false;
  30.     public boolean ALLOW_HERO_WEAPONS = true;
  31.     public int KILL_BONUS_ID = 0;
  32.     public int KILL_BONUS_COUNT = 0;
  33.     public int TAKE_ITEM_ID = 0;
  34.     public int TAKE_COUNT = 0;
  35.     public int RESURRECTION_TIME = 0;
  36.     public int NUMBER_OF_ROUNDS = 0;
  37.     public int MIN_LEVEL = 1;
  38.     public int MAX_LEVEL = 85;
  39.     public int TIME_TO_START_BATTLE = 10;
  40.     public HashMap<Integer, Boolean> DOORS = new HashMap<Integer, Boolean>();
  41.     public int REWARD_FOR_KILL = 1;
  42.     public int PAUSE_TIME = 5;
  43.     public String RESTRICT_ITEMS = "";
  44.     @SuppressWarnings("unused")
  45.     private ConcurrentHashMap<String, String> properties = new ConcurrentHashMap<String, String>();
  46.  
  47.     public int compareTo(Object obj)
  48.     {
  49.         Configs tmp = (Configs)obj;
  50.         return START_TIME < tmp.START_TIME ? -1 : START_TIME > tmp.START_TIME ? 1 : 0;
  51.     }
  52.  
  53.     public int[] getRestictId()
  54.     {
  55.         return getIntArray(RESTRICT_ITEMS);
  56.     }
  57.  
  58.     public int[] getRewardId()
  59.     {
  60.         return getIntArray(ST_REWARD_ITEM_ID);
  61.     }
  62.  
  63.     public int[] getRewardCount()
  64.     {
  65.         return getIntArray(ST_REWARD_COUNT);
  66.     }
  67.  
  68.     private int[] getIntArray(String name)
  69.     {
  70.          return Util.parseCommaSeparatedIntegerArray(name);
  71.     }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment