Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. package com.khelm.dungeons;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.HashMap;
  5.  
  6. import org.bukkit.Location;
  7.  
  8. import net.milkbowl.vault.economy.Economy;
  9. /**
  10. * Class to hold hard-coded constants and values read from config
  11. *
  12. * @author IraqiMilitant
  13. *
  14. */
  15. public class Constants {
  16. /*
  17. * Following are pulled from config for connecting to the database
  18. */
  19. public static String host="";
  20. public static String user="";
  21. public static String pass="";
  22. public static String dbName="";
  23. public static String port="";
  24.  
  25. public static boolean welcome=false;
  26.  
  27. //name of the server, pulled from the config
  28. public static String serverName="";
  29.  
  30. //max group size for attempting any dungeons, pulled from config
  31. public static int maxGroupSize=0;
  32.  
  33. public static int cashReward=0;
  34.  
  35. /*
  36. * Following are pulled from config and define the exit point (where players go after leaving a dungeon)
  37. */
  38. public static double exitX=0;
  39. public static double exitY=0;
  40. public static double exitZ=0;
  41.  
  42. public static double resX=0;
  43. public static double resY=0;
  44. public static double resZ=0;
  45.  
  46. //world the dungeons are in
  47. public static String dunegonW="";
  48.  
  49. /*
  50. * actual location objects generated from config values
  51. */
  52. public static Location exit=null;
  53.  
  54. public static Location res=null;
  55.  
  56. //time a dungeon is guaranteed to be left alone after a DM configs it
  57. public static int ownerTime=0;
  58.  
  59. public static int marker=0;
  60.  
  61. /*
  62. * some basic time constants
  63. */
  64. public static final int SECOND = 1000;
  65. public static final int MINUTE = 60 * SECOND;
  66. public static final int HOUR = 60 * MINUTE;
  67. public static final int DAY = 24 * HOUR;
  68.  
  69. //path variables for the dungeon list, and dungeon data files
  70. public static String path="";
  71. public static final String DUNGEONLIST="/dungeonList.data";
  72. public static final String DUNGEONSAVE="/dungeons/";
  73. public static final String DMITEMS="/DMItems.data";
  74. public static final String MOBGROUPS="/MobGroups.data";
  75.  
  76. //list of defined themes
  77. public static ArrayList<Theme>themes;
  78.  
  79. //maps for assigned difficulty values
  80. public static HashMap<String,Integer>effects;//effects applied to players
  81.  
  82. //mob related
  83. public static HashMap<String,Integer>abilities;
  84. public static HashMap<String,Integer>groupAbilities;
  85. public static HashMap<String,Integer>mobEffects;
  86.  
  87. //hazards
  88. public static HashMap<String,Integer>Hazards;
  89.  
  90. //most important setting
  91. public static boolean trollshawn=true;
  92.  
  93. //commands permitted in the dungeon world when in a dungeon or editing etc
  94. public static ArrayList<String>commands;
  95.  
  96. public static Economy eco;
  97. public static boolean hasEco;
  98.  
  99.  
  100. /*
  101. *
  102. * LOOT TABLES BELOW
  103. *
  104. *
  105. */
  106. public static HashMap<String,Integer>weapon_Melee;
  107. public static HashMap<String,Integer>weapon_Ranged;
  108. public static HashMap<String,Integer>armour;
  109. public static HashMap<String,Integer>potion_Normal;
  110. public static HashMap<String,Integer>potion_Splash;
  111. public static HashMap<String,Integer>enchant_Melee;
  112. public static HashMap<String,Integer>enchant_Ranged;
  113. public static HashMap<String,Integer>enchant_Armour;
  114. public static HashMap<String,Integer>item_Misc;
  115.  
  116.  
  117. public static HashMap<String,Integer>unique_Armour;
  118.  
  119.  
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement