use of pl.plajer.villagedefense3.arena.ArenaInitializer1_8_R3 in project Village_Defense by Plajer.
the class DogFriendKit method giveKitItems.
@Override
public void giveKitItems(Player player) {
player.getInventory().addItem(WeaponHelper.getUnBreakingSword(WeaponHelper.ResourceType.STONE, 10));
ArmorHelper.setArmor(player, ArmorHelper.ArmorType.LEATHER);
player.getInventory().addItem(new ItemStack(Material.GRILLED_PORK, 8));
player.getInventory().addItem(new ItemStack(Material.SADDLE));
Arena arena = ArenaRegistry.getArena(player);
if (arena == null)
return;
if (plugin.is1_8_R3()) {
ArenaInitializer1_8_R3 initializer = (ArenaInitializer1_8_R3) arena;
initializer.spawnWolf(initializer.getStartLocation(), player);
initializer.spawnWolf(initializer.getStartLocation(), player);
initializer.spawnWolf(initializer.getStartLocation(), player);
} else if (plugin.is1_9_R1()) {
ArenaInitializer1_9_R1 initializer = (ArenaInitializer1_9_R1) arena;
initializer.spawnWolf(initializer.getStartLocation(), player);
initializer.spawnWolf(initializer.getStartLocation(), player);
initializer.spawnWolf(initializer.getStartLocation(), player);
} else if (plugin.is1_11_R1()) {
ArenaInitializer1_11_R1 initializer = (ArenaInitializer1_11_R1) arena;
initializer.spawnWolf(initializer.getStartLocation(), player);
initializer.spawnWolf(initializer.getStartLocation(), player);
initializer.spawnWolf(initializer.getStartLocation(), player);
} else if (plugin.is1_12_R1()) {
ArenaInitializer1_12_R1 initializer = (ArenaInitializer1_12_R1) arena;
initializer.spawnWolf(initializer.getStartLocation(), player);
initializer.spawnWolf(initializer.getStartLocation(), player);
initializer.spawnWolf(initializer.getStartLocation(), player);
}
}
use of pl.plajer.villagedefense3.arena.ArenaInitializer1_8_R3 in project Village_Defense by Plajer.
the class DogFriendKit method reStock.
@Override
public void reStock(Player player) {
Arena arena = ArenaRegistry.getArena(player);
if (arena == null)
return;
if (plugin.is1_8_R3()) {
ArenaInitializer1_8_R3 initializer = (ArenaInitializer1_8_R3) arena;
initializer.spawnWolf(initializer.getStartLocation(), player);
} else if (plugin.is1_9_R1()) {
ArenaInitializer1_9_R1 initializer = (ArenaInitializer1_9_R1) arena;
initializer.spawnWolf(initializer.getStartLocation(), player);
} else if (plugin.is1_11_R1()) {
ArenaInitializer1_11_R1 initializer = (ArenaInitializer1_11_R1) arena;
initializer.spawnWolf(initializer.getStartLocation(), player);
} else if (plugin.is1_12_R1()) {
ArenaInitializer1_12_R1 initializer = (ArenaInitializer1_12_R1) arena;
initializer.spawnWolf(initializer.getStartLocation(), player);
}
}
Aggregations