"npc.yml" is now obsolete in favor of "npc-config.yml." The new yml file follows the same conventions as the old one, with the only difference being the use of item names instead of item IDs.
This commit is contained in:
parent
227beb9942
commit
70cfcdcd3e
@ -9,6 +9,7 @@ import java.util.logging.Logger;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.WorldCreator;
|
||||
import org.bukkit.WorldType;
|
||||
@ -96,7 +97,7 @@ public class ConfigDB {
|
||||
}
|
||||
|
||||
public File configF = new File("plugins" + File.separator + "Herobrine" + File.separator + "config.yml");
|
||||
public File npcF = new File("plugins" + File.separator + "Herobrine" + File.separator + "npc.yml");
|
||||
public File npcF = new File("plugins" + File.separator + "Herobrine" + File.separator + "npc-config.yml");
|
||||
|
||||
public void Startup() {
|
||||
// Import plugin configuration from old HerobrineAI configuration.
|
||||
@ -136,24 +137,24 @@ public class ConfigDB {
|
||||
this.npc.set("npc.Guardian.SpawnCount", Integer.valueOf(1));
|
||||
this.npc.set("npc.Guardian.HP", Integer.valueOf(40));
|
||||
this.npc.set("npc.Guardian.Speed", Double.valueOf(0.3D));
|
||||
this.npc.set("npc.Guardian.Drops.283.Chance", Integer.valueOf(40));
|
||||
this.npc.set("npc.Guardian.Drops.283.Count", Integer.valueOf(1));
|
||||
this.npc.set("npc.Guardian.Drops.286.Chance", Integer.valueOf(30));
|
||||
this.npc.set("npc.Guardian.Drops.286.Count", Integer.valueOf(1));
|
||||
this.npc.set("npc.Guardian.Drops.GOLDEN_SWORD.Chance", Integer.valueOf(40));
|
||||
this.npc.set("npc.Guardian.Drops.GOLDEN_SWORD.Count", Integer.valueOf(1));
|
||||
this.npc.set("npc.Guardian.Drops.GOLDEN_AXE.Chance", Integer.valueOf(30));
|
||||
this.npc.set("npc.Guardian.Drops.GOLDEN_AXE.Count", Integer.valueOf(1));
|
||||
this.npc.set("npc.Warrior.SpawnChance", Integer.valueOf(4));
|
||||
this.npc.set("npc.Warrior.HP", Integer.valueOf(40));
|
||||
this.npc.set("npc.Warrior.Speed", Double.valueOf(0.3D));
|
||||
this.npc.set("npc.Warrior.Drops.307.Chance", Integer.valueOf(25));
|
||||
this.npc.set("npc.Warrior.Drops.307.Count", Integer.valueOf(1));
|
||||
this.npc.set("npc.Warrior.Drops.306.Chance", Integer.valueOf(20));
|
||||
this.npc.set("npc.Warrior.Drops.306.Count", Integer.valueOf(1));
|
||||
this.npc.set("npc.Warrior.Drops.IRON_CHESTPLATE.Chance", Integer.valueOf(25));
|
||||
this.npc.set("npc.Warrior.Drops.IRON_CHESTPLATE.Count", Integer.valueOf(1));
|
||||
this.npc.set("npc.Warrior.Drops.IRON_HELMET.Chance", Integer.valueOf(20));
|
||||
this.npc.set("npc.Warrior.Drops.IRON_HELMET.Count", Integer.valueOf(1));
|
||||
this.npc.set("npc.Demon.SpawnChance", Integer.valueOf(4));
|
||||
this.npc.set("npc.Demon.HP", Integer.valueOf(40));
|
||||
this.npc.set("npc.Demon.Speed", Double.valueOf(0.3D));
|
||||
this.npc.set("npc.Demon.Drops.322.Chance", Integer.valueOf(40));
|
||||
this.npc.set("npc.Demon.Drops.322.Count", Integer.valueOf(1));
|
||||
this.npc.set("npc.Demon.Drops.397.Chance", Integer.valueOf(20));
|
||||
this.npc.set("npc.Demon.Drops.397.Count", Integer.valueOf(1));
|
||||
this.npc.set("npc.Demon.Drops.GOLDEN_APPLE.Chance", Integer.valueOf(40));
|
||||
this.npc.set("npc.Demon.Drops.GOLDEN_APPLE.Count", Integer.valueOf(1));
|
||||
this.npc.set("npc.Demon.Drops.SKELETON_SKULL.Chance", Integer.valueOf(20));
|
||||
this.npc.set("npc.Demon.Drops.SKELETON_SKULL.Count", Integer.valueOf(1));
|
||||
try {
|
||||
this.npc.save(this.npcF);
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user