示例#1
0
 public double getCommandCost(String label) {
   double cost = config.getDouble("command-costs." + label, 0.0);
   if (cost == 0.0) cost = config.getDouble("cost-" + label, 0.0);
   return cost;
 }
示例#2
0
 public double getNetherRatio() {
   if (config.getBoolean("nether.use-1to1-ratio", false)) {
     return 1.0;
   }
   return config.getDouble("nether.ratio", 16.0);
 }
示例#3
0
 public double getHealCooldown() {
   return config.getDouble("heal-cooldown", 60);
 }
示例#4
0
 public double getTeleportDelay() {
   return config.getDouble("teleport-delay", 0);
 }
示例#5
0
 public double getTeleportCooldown() {
   return config.getDouble("teleport-cooldown", 60);
 }