t
This commit is contained in:
@ -10,6 +10,7 @@ import org.bukkit.Sound;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.entity.Villager;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.github.paperspigot.Title;
|
||||
import rip.tilly.bedwars.BedWars;
|
||||
@ -279,4 +280,22 @@ public class Game {
|
||||
public double secondsToMinutes(int seconds) {
|
||||
return seconds / 60D;
|
||||
}
|
||||
|
||||
public void spawnVillagers() {
|
||||
Villager teamAShopVillager = this.arena.getTeamAshop().toBukkitLocation().getWorld().spawn(this.arena.getTeamAshop().toBukkitLocation(), Villager.class);
|
||||
teamAShopVillager.setCustomName(CC.translate("&aItem Shop"));
|
||||
teamAShopVillager.setCustomNameVisible(true);
|
||||
|
||||
Villager teamBShopVillager = this.arena.getTeamBshop().toBukkitLocation().getWorld().spawn(this.arena.getTeamBshop().toBukkitLocation(), Villager.class);
|
||||
teamBShopVillager.setCustomName(CC.translate("&aItem Shop"));
|
||||
teamBShopVillager.setCustomNameVisible(true);
|
||||
|
||||
Villager teamAUpgradesVillager = this.arena.getTeamAupgrades().toBukkitLocation().getWorld().spawn(this.arena.getTeamAupgrades().toBukkitLocation(), Villager.class);
|
||||
teamAUpgradesVillager.setCustomName(CC.translate("&aUpgrades Shop"));
|
||||
teamAUpgradesVillager.setCustomNameVisible(true);
|
||||
|
||||
Villager teamBUpgradesVillager = this.arena.getTeamBupgrades().toBukkitLocation().getWorld().spawn(this.arena.getTeamBupgrades().toBukkitLocation(), Villager.class);
|
||||
teamBUpgradesVillager.setCustomName(CC.translate("&aUpgrades Shop"));
|
||||
teamBUpgradesVillager.setCustomNameVisible(true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user