Add 1.10 Support - Added Polar Bear
This commit is contained in:
parent
b6d9d62d3c
commit
c7d61e3bb6
4
pom.xml
4
pom.xml
|
@ -75,13 +75,13 @@
|
|||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>bukkit</artifactId>
|
||||
<version>1.8-R0.1-SNAPSHOT</version>
|
||||
<version>1.10-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.milkbowl.vault</groupId>
|
||||
<artifactId>Vault</artifactId>
|
||||
<version>1.5.2</version>
|
||||
<version>1.5.6</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
@ -64,8 +64,14 @@ public class EggCatcher extends JavaPlugin {
|
|||
|
||||
public void CheckConfigurationFile() {
|
||||
double configVersion = this.getConfig().getDouble("ConfigVersion", 0.0);
|
||||
if (configVersion == 2.5) {
|
||||
//
|
||||
if (configVersion == 2.6) {
|
||||
this.saveConfig();
|
||||
} else if (configVersion == 2.5) {
|
||||
this.getConfig().set("CatchChance.PolarBear", 100.0);
|
||||
this.getConfig().set("VaultCost.PolarBear", 0);
|
||||
this.getConfig().set("ItemCost.Amount.PolarBear", 0);
|
||||
this.getConfig().set("HealthPercentage.PolarBear", 100.0);
|
||||
this.getConfig().set("ConfigVersion", 2.6);
|
||||
this.saveConfig();
|
||||
} else if (configVersion == 2.2) {
|
||||
this.getConfig().set("DeleteVillagerInventoryOnCatch", false);
|
||||
|
@ -95,4 +101,4 @@ public class EggCatcher extends JavaPlugin {
|
|||
this.reloadConfig();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,8 @@ public enum EggType {
|
|||
HORSE(EntityType.HORSE, 100, "Horse"),
|
||||
ENDERMITE(EntityType.ENDERMITE, 67, "Endermite"),
|
||||
GUARDIAN(EntityType.GUARDIAN, 68, "Guardian"),
|
||||
RABBIT(EntityType.RABBIT, 101, "Rabbit");
|
||||
RABBIT(EntityType.RABBIT, 101, "Rabbit"),
|
||||
POLAR_BEAR(EntityType.POLAR_BEAR, 102, "PolarBear");
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ CatchChance:
|
|||
Endermite: 100.0
|
||||
Guardian: 100.0
|
||||
Rabbit: 100.0
|
||||
PolarBear: 100.0
|
||||
VaultCost:
|
||||
Pig: 0.0
|
||||
Sheep: 0.0
|
||||
|
@ -70,6 +71,7 @@ VaultCost:
|
|||
Endermite: 0.0
|
||||
Guardian: 0.0
|
||||
Rabbit: 0.0
|
||||
PolarBear: 0.0
|
||||
ItemCost:
|
||||
ItemId: 371
|
||||
ItemData: 0
|
||||
|
@ -101,6 +103,7 @@ ItemCost:
|
|||
Endermite: 0
|
||||
Guardian: 0
|
||||
Rabbit: 0
|
||||
PolarBear: 0
|
||||
HealthPercentage:
|
||||
Pig: 100.0
|
||||
Sheep: 100.0
|
||||
|
@ -129,6 +132,7 @@ HealthPercentage:
|
|||
Endermite: 100.0
|
||||
Guardian: 100.0
|
||||
Rabbit: 100.0
|
||||
PolarBear: 100.0
|
||||
Messages:
|
||||
PermissionFail: "You do not have permission to catch this mob!"
|
||||
VaultFail: "It costs %s dollars to catch this mob!"
|
||||
|
@ -138,4 +142,4 @@ Messages:
|
|||
CatchChanceFail: "You failed to catch this mob!"
|
||||
CatchChanceSuccess: ""
|
||||
HealthPercentageFail: "The mob has more than %s percent health left and cannot be caught!"
|
||||
ConfigVersion: 2.5
|
||||
ConfigVersion: 2.6
|
||||
|
|
|
@ -37,6 +37,7 @@ permissions:
|
|||
eggcatcher.catch.endermite: true
|
||||
eggcatcher.catch.guardian: true
|
||||
eggcatcher.catch.rabbit: true
|
||||
eggcatcher.catch.polarbear: true
|
||||
eggcatcher.free:
|
||||
description: Makes catching a mob free.
|
||||
default: false
|
||||
default: false
|
||||
|
|
Loading…
Reference in New Issue