SpecialItem.getRandomItem chooses Missiles more often than Support Items
Dieser Commit ist enthalten in:
Ursprung
a3ae34bc50
Commit
f265408a42
@ -48,8 +48,8 @@ public class Config {
|
|||||||
public static final int ShieldFlyTime;
|
public static final int ShieldFlyTime;
|
||||||
public static final int EndTime;
|
public static final int EndTime;
|
||||||
|
|
||||||
public static int MissileCount = 4;
|
public static final int MissileCount;
|
||||||
public static double MissileChance = 0.7;
|
public static final double MissileChance;
|
||||||
|
|
||||||
static{
|
static{
|
||||||
File configfile = new File(Bukkit.getWorlds().get(0).getWorldFolder(), "config.yml");
|
File configfile = new File(Bukkit.getWorlds().get(0).getWorldFolder(), "config.yml");
|
||||||
@ -64,12 +64,8 @@ public class Config {
|
|||||||
ItemTime = config.getInt("ItemTime");
|
ItemTime = config.getInt("ItemTime");
|
||||||
ShieldFlyTime = config.getInt("ShieldFlyTime");
|
ShieldFlyTime = config.getInt("ShieldFlyTime");
|
||||||
EndTime = config.getInt("EndTime");
|
EndTime = config.getInt("EndTime");
|
||||||
try {
|
MissileCount = config.getInt("MissileCount");
|
||||||
MissileCount = config.getInt("MissileCount");
|
MissileChance = config.getDouble("MissileChance");
|
||||||
MissileChance = config.getDouble("MissileChance");
|
|
||||||
} catch (Exception e) {
|
|
||||||
Bukkit.getLogger().log(Level.SEVERE, e.getMessage(), e.getCause());
|
|
||||||
}
|
|
||||||
|
|
||||||
ConfigurationSection arena = config.getConfigurationSection("Arena");
|
ConfigurationSection arena = config.getConfigurationSection("Arena");
|
||||||
assert arena != null;
|
assert arena != null;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren