Fixed teleporting, need testers
This commit is contained in:
parent
c5b4f92f7b
commit
8d9d998b78
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -2,7 +2,6 @@ package me.Travja.HungerArena;
|
|||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.block.BlockFace;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
@ -18,156 +17,18 @@ public class FreezeListener implements Listener {
|
|||||||
Player p = event.getPlayer();
|
Player p = event.getPlayer();
|
||||||
String pname = p.getName();
|
String pname = p.getName();
|
||||||
if(plugin.Frozen.contains(pname) && plugin.config.getString("Frozen_Teleport").equalsIgnoreCase("True")){
|
if(plugin.Frozen.contains(pname) && plugin.config.getString("Frozen_Teleport").equalsIgnoreCase("True")){
|
||||||
|
if(plugin.config.getString("Explode_on_Move").equalsIgnoreCase("true")){
|
||||||
|
if(plugin.Playing.size()>=1){
|
||||||
|
String one = plugin.Playing.get(0);
|
||||||
|
if(pname==one){
|
||||||
|
Player tone = plugin.getServer().getPlayerExact(one);
|
||||||
String[] onecoords = plugin.config.getString("Tribute_one_spawn").split(",");
|
String[] onecoords = plugin.config.getString("Tribute_one_spawn").split(",");
|
||||||
double x = Double.parseDouble(onecoords[0]);
|
double x = Double.parseDouble(onecoords[0]);
|
||||||
double y = Double.parseDouble(onecoords[1]);
|
double y = Double.parseDouble(onecoords[1]);
|
||||||
double z = Double.parseDouble(onecoords[2]);
|
double z = Double.parseDouble(onecoords[2]);
|
||||||
World w = plugin.getServer().getWorld(onecoords[3]);
|
World w = plugin.getServer().getWorld(onecoords[3]);
|
||||||
Location onespwn = new Location(w,x,y,z);
|
Location onespwn = new Location(w,x,y,z);
|
||||||
String[] twocoords = plugin.config.getString("Tribute_two_spawn").split(",");
|
if(!tone.getLocation().getBlock().getLocation().equals(onespwn)){
|
||||||
double twox = Double.parseDouble(twocoords[0]);
|
|
||||||
double twoy = Double.parseDouble(twocoords[1]);
|
|
||||||
double twoz = Double.parseDouble(twocoords[2]);
|
|
||||||
World twow = plugin.getServer().getWorld(twocoords[3]);
|
|
||||||
Location twospwn = new Location(twow,twox,twoy,twoz);
|
|
||||||
String[] threecoords = plugin.config.getString("Tribute_three_spawn").split(",");
|
|
||||||
double threex = Double.parseDouble(threecoords[0]);
|
|
||||||
double threey = Double.parseDouble(threecoords[1]);
|
|
||||||
double threez = Double.parseDouble(threecoords[2]);
|
|
||||||
World threew = plugin.getServer().getWorld(threecoords[3]);
|
|
||||||
Location threespwn = new Location(threew,threex,threey,threez);
|
|
||||||
String[] fourcoords = plugin.config.getString("Tribute_four_spawn").split(",");
|
|
||||||
double fourx = Double.parseDouble(fourcoords[0]);
|
|
||||||
double foury = Double.parseDouble(fourcoords[1]);
|
|
||||||
double fourz = Double.parseDouble(fourcoords[2]);
|
|
||||||
World fourw = plugin.getServer().getWorld(fourcoords[3]);
|
|
||||||
Location fourspwn = new Location(fourw,fourx,foury,fourz);
|
|
||||||
String[] fivecoords = plugin.config.getString("Tribute_five_spawn").split(",");
|
|
||||||
double fivex = Double.parseDouble(fivecoords[0]);
|
|
||||||
double fivey = Double.parseDouble(fivecoords[1]);
|
|
||||||
double fivez = Double.parseDouble(fivecoords[2]);
|
|
||||||
World fivew = plugin.getServer().getWorld(fivecoords[3]);
|
|
||||||
Location fivespwn = new Location(fivew,fivex,fivey,fivez);
|
|
||||||
String[] sixcoords = plugin.config.getString("Tribute_six_spawn").split(",");
|
|
||||||
double sixx = Double.parseDouble(sixcoords[0]);
|
|
||||||
double sixy = Double.parseDouble(sixcoords[1]);
|
|
||||||
double sixz = Double.parseDouble(sixcoords[2]);
|
|
||||||
World sixw = plugin.getServer().getWorld(sixcoords[3]);
|
|
||||||
Location sixspwn = new Location(sixw,sixx,sixy,sixz);
|
|
||||||
String[] sevencoords = plugin.config.getString("Tribute_seven_spawn").split(",");
|
|
||||||
double sevenx = Double.parseDouble(sevencoords[0]);
|
|
||||||
double seveny = Double.parseDouble(sevencoords[1]);
|
|
||||||
double sevenz = Double.parseDouble(sevencoords[2]);
|
|
||||||
World sevenw = plugin.getServer().getWorld(sevencoords[3]);
|
|
||||||
Location sevenspwn = new Location(sevenw,sevenx,seveny,sevenz);
|
|
||||||
String[] eightcoords = plugin.config.getString("Tribute_eight_spawn").split(",");
|
|
||||||
double eightx = Double.parseDouble(eightcoords[0]);
|
|
||||||
double eighty = Double.parseDouble(eightcoords[1]);
|
|
||||||
double eightz = Double.parseDouble(eightcoords[2]);
|
|
||||||
World eightw = plugin.getServer().getWorld(eightcoords[3]);
|
|
||||||
Location eightspwn = new Location(eightw,eightx,eighty,eightz);
|
|
||||||
String[] ninecoords = plugin.config.getString("Tribute_nine_spawn").split(",");
|
|
||||||
double ninex = Double.parseDouble(ninecoords[0]);
|
|
||||||
double niney = Double.parseDouble(ninecoords[1]);
|
|
||||||
double ninez = Double.parseDouble(ninecoords[2]);
|
|
||||||
World ninew = plugin.getServer().getWorld(ninecoords[3]);
|
|
||||||
Location ninespwn = new Location(ninew,ninex,niney,ninez);
|
|
||||||
String[] tencoords = plugin.config.getString("Tribute_ten_spawn").split(",");
|
|
||||||
double tenx = Double.parseDouble(tencoords[0]);
|
|
||||||
double teny = Double.parseDouble(tencoords[1]);
|
|
||||||
double tenz = Double.parseDouble(tencoords[2]);
|
|
||||||
World tenw = plugin.getServer().getWorld(tencoords[3]);
|
|
||||||
Location tenspwn = new Location(tenw,tenx,teny,tenz);
|
|
||||||
String[] elevencoords = plugin.config.getString("Tribute_eleven_spawn").split(",");
|
|
||||||
double elevenx = Double.parseDouble(elevencoords[0]);
|
|
||||||
double eleveny = Double.parseDouble(elevencoords[1]);
|
|
||||||
double elevenz = Double.parseDouble(elevencoords[2]);
|
|
||||||
World elevenw = plugin.getServer().getWorld(elevencoords[3]);
|
|
||||||
Location elevenspwn = new Location(elevenw,elevenx,eleveny,elevenz);
|
|
||||||
String[] twelvecoords = plugin.config.getString("Tribute_twelve_spawn").split(",");
|
|
||||||
double twelvex = Double.parseDouble(twelvecoords[0]);
|
|
||||||
double twelvey = Double.parseDouble(twelvecoords[1]);
|
|
||||||
double twelvez = Double.parseDouble(twelvecoords[2]);
|
|
||||||
World twelvew = plugin.getServer().getWorld(twelvecoords[3]);
|
|
||||||
Location twelvespwn = new Location(twelvew,twelvex,twelvey,twelvez);
|
|
||||||
String[] thirteencoords = plugin.config.getString("Tribute_thirteen_spawn").split(",");
|
|
||||||
double thirteenx = Double.parseDouble(thirteencoords[0]);
|
|
||||||
double thirteeny = Double.parseDouble(thirteencoords[1]);
|
|
||||||
double thirteenz = Double.parseDouble(thirteencoords[2]);
|
|
||||||
World thirteenw = plugin.getServer().getWorld(thirteencoords[3]);
|
|
||||||
Location thirteenspwn = new Location(thirteenw,thirteenx,thirteeny,thirteenz);
|
|
||||||
String[] fourteencoords = plugin.config.getString("Tribute_fourteen_spawn").split(",");
|
|
||||||
double fourteenx = Double.parseDouble(fourteencoords[0]);
|
|
||||||
double fourteeny = Double.parseDouble(fourteencoords[1]);
|
|
||||||
double fourteenz = Double.parseDouble(fourteencoords[2]);
|
|
||||||
World fourteenw = plugin.getServer().getWorld(fourteencoords[3]);
|
|
||||||
Location fourteenspwn = new Location(fourteenw,fourteenx,fourteeny,fourteenz);
|
|
||||||
String[] fifteencoords = plugin.config.getString("Tribute_fifteen_spawn").split(",");
|
|
||||||
double fifteenx = Double.parseDouble(fifteencoords[0]);
|
|
||||||
double fifteeny = Double.parseDouble(fifteencoords[1]);
|
|
||||||
double fifteenz = Double.parseDouble(fifteencoords[2]);
|
|
||||||
World fifteenw = plugin.getServer().getWorld(fifteencoords[3]);
|
|
||||||
Location fifteenspwn = new Location(fifteenw,fifteenx,fifteeny,fifteenz);
|
|
||||||
String[] sixteencoords = plugin.config.getString("Tribute_sixteen_spawn").split(",");
|
|
||||||
double sixteenx = Double.parseDouble(sixteencoords[0]);
|
|
||||||
double sixteeny = Double.parseDouble(sixteencoords[1]);
|
|
||||||
double sixteenz = Double.parseDouble(sixteencoords[2]);
|
|
||||||
World sixteenw = plugin.getServer().getWorld(sixteencoords[3]);
|
|
||||||
Location sixteenspwn = new Location(sixteenw,sixteenx,sixteeny,sixteenz);
|
|
||||||
String[] seventeencoords = plugin.config.getString("Tribute_seventeen_spawn").split(",");
|
|
||||||
double seventeenx = Double.parseDouble(seventeencoords[0]);
|
|
||||||
double seventeeny = Double.parseDouble(seventeencoords[1]);
|
|
||||||
double seventeenz = Double.parseDouble(seventeencoords[2]);
|
|
||||||
World seventeenw = plugin.getServer().getWorld(seventeencoords[3]);
|
|
||||||
Location seventeenspwn = new Location(seventeenw,seventeenx,seventeeny,seventeenz);
|
|
||||||
String[] eighteencoords = plugin.config.getString("Tribute_eighteen_spawn").split(",");
|
|
||||||
double eighteenx = Double.parseDouble(eighteencoords[0]);
|
|
||||||
double eighteeny = Double.parseDouble(eighteencoords[1]);
|
|
||||||
double eighteenz = Double.parseDouble(eighteencoords[2]);
|
|
||||||
World eighteenw = plugin.getServer().getWorld(eighteencoords[3]);
|
|
||||||
Location eighteenspwn = new Location(eighteenw,eighteenx,eighteeny,eighteenz);
|
|
||||||
String[] nineteencoords = plugin.config.getString("Tribute_nineteen_spawn").split(",");
|
|
||||||
double nineteenx = Double.parseDouble(nineteencoords[0]);
|
|
||||||
double nineteeny = Double.parseDouble(nineteencoords[1]);
|
|
||||||
double nineteenz = Double.parseDouble(nineteencoords[2]);
|
|
||||||
World nineteenw = plugin.getServer().getWorld(nineteencoords[3]);
|
|
||||||
Location nineteenspwn = new Location(nineteenw,nineteenx,nineteeny,nineteenz);
|
|
||||||
String[] twentycoords = plugin.config.getString("Tribute_twenty_spawn").split(",");
|
|
||||||
double twentyx = Double.parseDouble(twentycoords[0]);
|
|
||||||
double twentyy = Double.parseDouble(twentycoords[1]);
|
|
||||||
double twentyz = Double.parseDouble(twentycoords[2]);
|
|
||||||
World twentyw = plugin.getServer().getWorld(twentycoords[3]);
|
|
||||||
Location twentyspwn = new Location(twentyw,twentyx,twentyy,twentyz);
|
|
||||||
String[] twentyonecoords = plugin.config.getString("Tribute_twentyone_spawn").split(",");
|
|
||||||
double twentyonex = Double.parseDouble(twentyonecoords[0]);
|
|
||||||
double twentyoney = Double.parseDouble(twentyonecoords[1]);
|
|
||||||
double twentyonez = Double.parseDouble(twentyonecoords[2]);
|
|
||||||
World twentyonew = plugin.getServer().getWorld(twentyonecoords[3]);
|
|
||||||
Location twentyonespwn = new Location(twentyonew,twentyonex,twentyoney,twentyonez);
|
|
||||||
String[] twentytwocoords = plugin.config.getString("Tribute_twentytwo_spawn").split(",");
|
|
||||||
double twentytwox = Double.parseDouble(twentytwocoords[0]);
|
|
||||||
double twentytwoy = Double.parseDouble(twentytwocoords[1]);
|
|
||||||
double twentytwoz = Double.parseDouble(twentytwocoords[2]);
|
|
||||||
World twentytwow = plugin.getServer().getWorld(twentytwocoords[3]);
|
|
||||||
Location twentytwospwn = new Location(twentytwow,twentytwox,twentytwoy,twentytwoz);
|
|
||||||
String[] twentythreecoords = plugin.config.getString("Tribute_twentythree_spawn").split(",");
|
|
||||||
double twentythreex = Double.parseDouble(twentythreecoords[0]);
|
|
||||||
double twentythreey = Double.parseDouble(twentythreecoords[1]);
|
|
||||||
double twentythreez = Double.parseDouble(twentythreecoords[2]);
|
|
||||||
World twentythreew = plugin.getServer().getWorld(twentythreecoords[3]);
|
|
||||||
Location twentythreespwn = new Location(twentythreew,twentythreex,twentythreey,twentythreez);
|
|
||||||
String[] twentyfourcoords = plugin.config.getString("Tribute_twentyfour_spawn").split(",");
|
|
||||||
double twentyfourx = Double.parseDouble(twentyfourcoords[0]);
|
|
||||||
double twentyfoury = Double.parseDouble(twentyfourcoords[1]);
|
|
||||||
double twentyfourz = Double.parseDouble(twentyfourcoords[2]);
|
|
||||||
World twentyfourw = plugin.getServer().getWorld(twentyfourcoords[3]);
|
|
||||||
Location twentyfourspwn = new Location(twentyfourw,twentyfourx,twentyfoury,twentyfourz);
|
|
||||||
if(plugin.config.getString("Explode_on_Move").equalsIgnoreCase("true")){
|
|
||||||
if(plugin.Playing.size()>=1){
|
|
||||||
String one = plugin.Playing.get(0);
|
|
||||||
if(pname==one){
|
|
||||||
Player tone = plugin.getServer().getPlayerExact(one);
|
|
||||||
if(!tone.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(onespwn)){
|
|
||||||
if(!plugin.Dead.contains(tone.getName())){
|
if(!plugin.Dead.contains(tone.getName())){
|
||||||
World world = tone.getLocation().getWorld();
|
World world = tone.getLocation().getWorld();
|
||||||
world.createExplosion(tone.getLocation(), 0.0F, false);
|
world.createExplosion(tone.getLocation(), 0.0F, false);
|
||||||
@ -180,7 +41,13 @@ public class FreezeListener implements Listener {
|
|||||||
String two = plugin.Playing.get(1);
|
String two = plugin.Playing.get(1);
|
||||||
if(pname==two){
|
if(pname==two){
|
||||||
Player ttwo = plugin.getServer().getPlayerExact(two);
|
Player ttwo = plugin.getServer().getPlayerExact(two);
|
||||||
if(!ttwo.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twospwn)){
|
String[] twocoords = plugin.config.getString("Tribute_two_spawn").split(",");
|
||||||
|
double twox = Double.parseDouble(twocoords[0]);
|
||||||
|
double twoy = Double.parseDouble(twocoords[1]);
|
||||||
|
double twoz = Double.parseDouble(twocoords[2]);
|
||||||
|
World twow = plugin.getServer().getWorld(twocoords[3]);
|
||||||
|
Location twospwn = new Location(twow,twox,twoy,twoz);
|
||||||
|
if(!ttwo.getLocation().getBlock().getLocation().equals(twospwn)){
|
||||||
if(!plugin.Dead.contains(ttwo.getName())){
|
if(!plugin.Dead.contains(ttwo.getName())){
|
||||||
World world = ttwo.getLocation().getWorld();
|
World world = ttwo.getLocation().getWorld();
|
||||||
world.createExplosion(ttwo.getLocation(), 0.0F, false);
|
world.createExplosion(ttwo.getLocation(), 0.0F, false);
|
||||||
@ -193,7 +60,13 @@ public class FreezeListener implements Listener {
|
|||||||
String three = plugin.Playing.get(2);
|
String three = plugin.Playing.get(2);
|
||||||
if(pname==three){
|
if(pname==three){
|
||||||
Player tthree = plugin.getServer().getPlayerExact(three);
|
Player tthree = plugin.getServer().getPlayerExact(three);
|
||||||
if(!tthree.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(threespwn)){
|
String[] threecoords = plugin.config.getString("Tribute_three_spawn").split(",");
|
||||||
|
double threex = Double.parseDouble(threecoords[0]);
|
||||||
|
double threey = Double.parseDouble(threecoords[1]);
|
||||||
|
double threez = Double.parseDouble(threecoords[2]);
|
||||||
|
World threew = plugin.getServer().getWorld(threecoords[3]);
|
||||||
|
Location threespwn = new Location(threew,threex,threey,threez);
|
||||||
|
if(!tthree.getLocation().getBlock().getLocation().equals(threespwn)){
|
||||||
if(!plugin.Dead.contains(tthree.getName())){
|
if(!plugin.Dead.contains(tthree.getName())){
|
||||||
World world = tthree.getLocation().getWorld();
|
World world = tthree.getLocation().getWorld();
|
||||||
world.createExplosion(tthree.getLocation(), 0.0F, false);
|
world.createExplosion(tthree.getLocation(), 0.0F, false);
|
||||||
@ -206,7 +79,13 @@ public class FreezeListener implements Listener {
|
|||||||
String four = plugin.Playing.get(3);
|
String four = plugin.Playing.get(3);
|
||||||
if(pname==four){
|
if(pname==four){
|
||||||
Player tfour = plugin.getServer().getPlayerExact(four);
|
Player tfour = plugin.getServer().getPlayerExact(four);
|
||||||
if(!tfour.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(fourspwn)){
|
String[] fourcoords = plugin.config.getString("Tribute_four_spawn").split(",");
|
||||||
|
double fourx = Double.parseDouble(fourcoords[0]);
|
||||||
|
double foury = Double.parseDouble(fourcoords[1]);
|
||||||
|
double fourz = Double.parseDouble(fourcoords[2]);
|
||||||
|
World fourw = plugin.getServer().getWorld(fourcoords[3]);
|
||||||
|
Location fourspwn = new Location(fourw,fourx,foury,fourz);
|
||||||
|
if(!tfour.getLocation().getBlock().getLocation().equals(fourspwn)){
|
||||||
if(!plugin.Dead.contains(tfour.getName())){
|
if(!plugin.Dead.contains(tfour.getName())){
|
||||||
World world = tfour.getLocation().getWorld();
|
World world = tfour.getLocation().getWorld();
|
||||||
world.createExplosion(tfour.getLocation(), 0.0F, false);
|
world.createExplosion(tfour.getLocation(), 0.0F, false);
|
||||||
@ -219,7 +98,13 @@ public class FreezeListener implements Listener {
|
|||||||
String five = plugin.Playing.get(4);
|
String five = plugin.Playing.get(4);
|
||||||
if(pname==five){
|
if(pname==five){
|
||||||
Player tfive = plugin.getServer().getPlayerExact(five);
|
Player tfive = plugin.getServer().getPlayerExact(five);
|
||||||
if(!tfive.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(fivespwn)){
|
String[] fivecoords = plugin.config.getString("Tribute_five_spawn").split(",");
|
||||||
|
double fivex = Double.parseDouble(fivecoords[0]);
|
||||||
|
double fivey = Double.parseDouble(fivecoords[1]);
|
||||||
|
double fivez = Double.parseDouble(fivecoords[2]);
|
||||||
|
World fivew = plugin.getServer().getWorld(fivecoords[3]);
|
||||||
|
Location fivespwn = new Location(fivew,fivex,fivey,fivez);
|
||||||
|
if(!tfive.getLocation().getBlock().getLocation().equals(fivespwn)){
|
||||||
if(!plugin.Dead.contains(tfive.getName())){
|
if(!plugin.Dead.contains(tfive.getName())){
|
||||||
World world = tfive.getLocation().getWorld();
|
World world = tfive.getLocation().getWorld();
|
||||||
world.createExplosion(tfive.getLocation(), 0.0F, false);
|
world.createExplosion(tfive.getLocation(), 0.0F, false);
|
||||||
@ -232,7 +117,13 @@ public class FreezeListener implements Listener {
|
|||||||
String six = plugin.Playing.get(5);
|
String six = plugin.Playing.get(5);
|
||||||
if(pname==six){
|
if(pname==six){
|
||||||
Player tsix = plugin.getServer().getPlayerExact(six);
|
Player tsix = plugin.getServer().getPlayerExact(six);
|
||||||
if(!tsix.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(sixspwn)){
|
String[] sixcoords = plugin.config.getString("Tribute_six_spawn").split(",");
|
||||||
|
double sixx = Double.parseDouble(sixcoords[0]);
|
||||||
|
double sixy = Double.parseDouble(sixcoords[1]);
|
||||||
|
double sixz = Double.parseDouble(sixcoords[2]);
|
||||||
|
World sixw = plugin.getServer().getWorld(sixcoords[3]);
|
||||||
|
Location sixspwn = new Location(sixw,sixx,sixy,sixz);
|
||||||
|
if(!tsix.getLocation().getBlock().getLocation().equals(sixspwn)){
|
||||||
if(!plugin.Dead.contains(tsix.getName())){
|
if(!plugin.Dead.contains(tsix.getName())){
|
||||||
World world = tsix.getLocation().getWorld();
|
World world = tsix.getLocation().getWorld();
|
||||||
world.createExplosion(tsix.getLocation(), 0.0F, false);
|
world.createExplosion(tsix.getLocation(), 0.0F, false);
|
||||||
@ -245,7 +136,13 @@ public class FreezeListener implements Listener {
|
|||||||
String seven = plugin.Playing.get(6);
|
String seven = plugin.Playing.get(6);
|
||||||
if(pname==seven){
|
if(pname==seven){
|
||||||
Player tseven = plugin.getServer().getPlayerExact(seven);
|
Player tseven = plugin.getServer().getPlayerExact(seven);
|
||||||
if(!tseven.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(sevenspwn)){
|
String[] sevencoords = plugin.config.getString("Tribute_seven_spawn").split(",");
|
||||||
|
double sevenx = Double.parseDouble(sevencoords[0]);
|
||||||
|
double seveny = Double.parseDouble(sevencoords[1]);
|
||||||
|
double sevenz = Double.parseDouble(sevencoords[2]);
|
||||||
|
World sevenw = plugin.getServer().getWorld(sevencoords[3]);
|
||||||
|
Location sevenspwn = new Location(sevenw,sevenx,seveny,sevenz);
|
||||||
|
if(!tseven.getLocation().getBlock().getLocation().equals(sevenspwn)){
|
||||||
if(!plugin.Dead.contains(tseven.getName())){
|
if(!plugin.Dead.contains(tseven.getName())){
|
||||||
World world = tseven.getLocation().getWorld();
|
World world = tseven.getLocation().getWorld();
|
||||||
world.createExplosion(tseven.getLocation(), 0.0F, false);
|
world.createExplosion(tseven.getLocation(), 0.0F, false);
|
||||||
@ -258,7 +155,13 @@ public class FreezeListener implements Listener {
|
|||||||
String eight = plugin.Playing.get(7);
|
String eight = plugin.Playing.get(7);
|
||||||
if(pname==eight){
|
if(pname==eight){
|
||||||
Player teight = plugin.getServer().getPlayerExact(eight);
|
Player teight = plugin.getServer().getPlayerExact(eight);
|
||||||
if(!teight.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(eightspwn)){
|
String[] eightcoords = plugin.config.getString("Tribute_eight_spawn").split(",");
|
||||||
|
double eightx = Double.parseDouble(eightcoords[0]);
|
||||||
|
double eighty = Double.parseDouble(eightcoords[1]);
|
||||||
|
double eightz = Double.parseDouble(eightcoords[2]);
|
||||||
|
World eightw = plugin.getServer().getWorld(eightcoords[3]);
|
||||||
|
Location eightspwn = new Location(eightw,eightx,eighty,eightz);
|
||||||
|
if(!teight.getLocation().getBlock().getLocation().equals(eightspwn)){
|
||||||
if(!plugin.Dead.contains(teight.getName())){
|
if(!plugin.Dead.contains(teight.getName())){
|
||||||
World world = teight.getLocation().getWorld();
|
World world = teight.getLocation().getWorld();
|
||||||
world.createExplosion(teight.getLocation(), 0.0F, false);
|
world.createExplosion(teight.getLocation(), 0.0F, false);
|
||||||
@ -271,7 +174,13 @@ public class FreezeListener implements Listener {
|
|||||||
String nine = plugin.Playing.get(8);
|
String nine = plugin.Playing.get(8);
|
||||||
if(pname==nine){
|
if(pname==nine){
|
||||||
Player tnine = plugin.getServer().getPlayerExact(nine);
|
Player tnine = plugin.getServer().getPlayerExact(nine);
|
||||||
if(!tnine.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(ninespwn)){
|
String[] ninecoords = plugin.config.getString("Tribute_nine_spawn").split(",");
|
||||||
|
double ninex = Double.parseDouble(ninecoords[0]);
|
||||||
|
double niney = Double.parseDouble(ninecoords[1]);
|
||||||
|
double ninez = Double.parseDouble(ninecoords[2]);
|
||||||
|
World ninew = plugin.getServer().getWorld(ninecoords[3]);
|
||||||
|
Location ninespwn = new Location(ninew,ninex,niney,ninez);
|
||||||
|
if(!tnine.getLocation().getBlock().getLocation().equals(ninespwn)){
|
||||||
if(!plugin.Dead.contains(tnine.getName())){
|
if(!plugin.Dead.contains(tnine.getName())){
|
||||||
World world = tnine.getLocation().getWorld();
|
World world = tnine.getLocation().getWorld();
|
||||||
world.createExplosion(tnine.getLocation(), 0.0F, false);
|
world.createExplosion(tnine.getLocation(), 0.0F, false);
|
||||||
@ -284,7 +193,13 @@ public class FreezeListener implements Listener {
|
|||||||
String ten = plugin.Playing.get(9);
|
String ten = plugin.Playing.get(9);
|
||||||
if(pname==ten){
|
if(pname==ten){
|
||||||
Player tten = plugin.getServer().getPlayerExact(ten);
|
Player tten = plugin.getServer().getPlayerExact(ten);
|
||||||
if(!tten.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(tenspwn)){
|
String[] tencoords = plugin.config.getString("Tribute_ten_spawn").split(",");
|
||||||
|
double tenx = Double.parseDouble(tencoords[0]);
|
||||||
|
double teny = Double.parseDouble(tencoords[1]);
|
||||||
|
double tenz = Double.parseDouble(tencoords[2]);
|
||||||
|
World tenw = plugin.getServer().getWorld(tencoords[3]);
|
||||||
|
Location tenspwn = new Location(tenw,tenx,teny,tenz);
|
||||||
|
if(!tten.getLocation().getBlock().getLocation().equals(tenspwn)){
|
||||||
if(!plugin.Dead.contains(tten.getName())){
|
if(!plugin.Dead.contains(tten.getName())){
|
||||||
World world = tten.getLocation().getWorld();
|
World world = tten.getLocation().getWorld();
|
||||||
world.createExplosion(tten.getLocation(), 0.0F, false);
|
world.createExplosion(tten.getLocation(), 0.0F, false);
|
||||||
@ -297,7 +212,13 @@ public class FreezeListener implements Listener {
|
|||||||
String eleven = plugin.Playing.get(10);
|
String eleven = plugin.Playing.get(10);
|
||||||
if(pname==eleven){
|
if(pname==eleven){
|
||||||
Player televen = plugin.getServer().getPlayerExact(eleven);
|
Player televen = plugin.getServer().getPlayerExact(eleven);
|
||||||
if(!televen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(elevenspwn)){
|
String[] elevencoords = plugin.config.getString("Tribute_eleven_spawn").split(",");
|
||||||
|
double elevenx = Double.parseDouble(elevencoords[0]);
|
||||||
|
double eleveny = Double.parseDouble(elevencoords[1]);
|
||||||
|
double elevenz = Double.parseDouble(elevencoords[2]);
|
||||||
|
World elevenw = plugin.getServer().getWorld(elevencoords[3]);
|
||||||
|
Location elevenspwn = new Location(elevenw,elevenx,eleveny,elevenz);
|
||||||
|
if(!televen.getLocation().getBlock().getLocation().equals(elevenspwn)){
|
||||||
if(!plugin.Dead.contains(televen.getName())){
|
if(!plugin.Dead.contains(televen.getName())){
|
||||||
World world = televen.getLocation().getWorld();
|
World world = televen.getLocation().getWorld();
|
||||||
world.createExplosion(televen.getLocation(), 0.0F, false);
|
world.createExplosion(televen.getLocation(), 0.0F, false);
|
||||||
@ -310,7 +231,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twelve = plugin.Playing.get(11);
|
String twelve = plugin.Playing.get(11);
|
||||||
if(pname==twelve){
|
if(pname==twelve){
|
||||||
Player ttwelve = plugin.getServer().getPlayerExact(twelve);
|
Player ttwelve = plugin.getServer().getPlayerExact(twelve);
|
||||||
if(!ttwelve.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twelvespwn)){
|
String[] twelvecoords = plugin.config.getString("Tribute_twelve_spawn").split(",");
|
||||||
|
double twelvex = Double.parseDouble(twelvecoords[0]);
|
||||||
|
double twelvey = Double.parseDouble(twelvecoords[1]);
|
||||||
|
double twelvez = Double.parseDouble(twelvecoords[2]);
|
||||||
|
World twelvew = plugin.getServer().getWorld(twelvecoords[3]);
|
||||||
|
Location twelvespwn = new Location(twelvew,twelvex,twelvey,twelvez);
|
||||||
|
if(!ttwelve.getLocation().getBlock().getLocation().equals(twelvespwn)){
|
||||||
if(!plugin.Dead.contains(ttwelve.getName())){
|
if(!plugin.Dead.contains(ttwelve.getName())){
|
||||||
World world = ttwelve.getLocation().getWorld();
|
World world = ttwelve.getLocation().getWorld();
|
||||||
world.createExplosion(ttwelve.getLocation(), 0.0F, false);
|
world.createExplosion(ttwelve.getLocation(), 0.0F, false);
|
||||||
@ -323,7 +250,13 @@ public class FreezeListener implements Listener {
|
|||||||
String thirteen = plugin.Playing.get(12);
|
String thirteen = plugin.Playing.get(12);
|
||||||
if(pname==thirteen){
|
if(pname==thirteen){
|
||||||
Player tthirteen = plugin.getServer().getPlayerExact(thirteen);
|
Player tthirteen = plugin.getServer().getPlayerExact(thirteen);
|
||||||
if(!tthirteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(thirteenspwn)){
|
String[] thirteencoords = plugin.config.getString("Tribute_thirteen_spawn").split(",");
|
||||||
|
double thirteenx = Double.parseDouble(thirteencoords[0]);
|
||||||
|
double thirteeny = Double.parseDouble(thirteencoords[1]);
|
||||||
|
double thirteenz = Double.parseDouble(thirteencoords[2]);
|
||||||
|
World thirteenw = plugin.getServer().getWorld(thirteencoords[3]);
|
||||||
|
Location thirteenspwn = new Location(thirteenw,thirteenx,thirteeny,thirteenz);
|
||||||
|
if(!tthirteen.getLocation().getBlock().getLocation().equals(thirteenspwn)){
|
||||||
if(!plugin.Dead.contains(tthirteen.getName())){
|
if(!plugin.Dead.contains(tthirteen.getName())){
|
||||||
World world = tthirteen.getLocation().getWorld();
|
World world = tthirteen.getLocation().getWorld();
|
||||||
world.createExplosion(tthirteen.getLocation(), 0.0F, false);
|
world.createExplosion(tthirteen.getLocation(), 0.0F, false);
|
||||||
@ -336,7 +269,13 @@ public class FreezeListener implements Listener {
|
|||||||
String fourteen = plugin.Playing.get(13);
|
String fourteen = plugin.Playing.get(13);
|
||||||
if(pname==fourteen){
|
if(pname==fourteen){
|
||||||
Player tfourteen = plugin.getServer().getPlayerExact(fourteen);
|
Player tfourteen = plugin.getServer().getPlayerExact(fourteen);
|
||||||
if(!tfourteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(fourteenspwn)){
|
String[] fourteencoords = plugin.config.getString("Tribute_fourteen_spawn").split(",");
|
||||||
|
double fourteenx = Double.parseDouble(fourteencoords[0]);
|
||||||
|
double fourteeny = Double.parseDouble(fourteencoords[1]);
|
||||||
|
double fourteenz = Double.parseDouble(fourteencoords[2]);
|
||||||
|
World fourteenw = plugin.getServer().getWorld(fourteencoords[3]);
|
||||||
|
Location fourteenspwn = new Location(fourteenw,fourteenx,fourteeny,fourteenz);
|
||||||
|
if(!tfourteen.getLocation().getBlock().getLocation().equals(fourteenspwn)){
|
||||||
if(!plugin.Dead.contains(tfourteen.getName())){
|
if(!plugin.Dead.contains(tfourteen.getName())){
|
||||||
World world = tfourteen.getLocation().getWorld();
|
World world = tfourteen.getLocation().getWorld();
|
||||||
world.createExplosion(tfourteen.getLocation(), 0.0F, false);
|
world.createExplosion(tfourteen.getLocation(), 0.0F, false);
|
||||||
@ -349,7 +288,13 @@ public class FreezeListener implements Listener {
|
|||||||
String fifteen = plugin.Playing.get(14);
|
String fifteen = plugin.Playing.get(14);
|
||||||
if(pname==fifteen){
|
if(pname==fifteen){
|
||||||
Player tfifteen = plugin.getServer().getPlayerExact(fifteen);
|
Player tfifteen = plugin.getServer().getPlayerExact(fifteen);
|
||||||
if(!tfifteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(fifteenspwn)){
|
String[] fifteencoords = plugin.config.getString("Tribute_fifteen_spawn").split(",");
|
||||||
|
double fifteenx = Double.parseDouble(fifteencoords[0]);
|
||||||
|
double fifteeny = Double.parseDouble(fifteencoords[1]);
|
||||||
|
double fifteenz = Double.parseDouble(fifteencoords[2]);
|
||||||
|
World fifteenw = plugin.getServer().getWorld(fifteencoords[3]);
|
||||||
|
Location fifteenspwn = new Location(fifteenw,fifteenx,fifteeny,fifteenz);
|
||||||
|
if(!tfifteen.getLocation().getBlock().getLocation().equals(fifteenspwn)){
|
||||||
if(!plugin.Dead.contains(tfifteen.getName())){
|
if(!plugin.Dead.contains(tfifteen.getName())){
|
||||||
World world = tfifteen.getLocation().getWorld();
|
World world = tfifteen.getLocation().getWorld();
|
||||||
world.createExplosion(tfifteen.getLocation(), 0.0F, false);
|
world.createExplosion(tfifteen.getLocation(), 0.0F, false);
|
||||||
@ -362,7 +307,13 @@ public class FreezeListener implements Listener {
|
|||||||
String sixteen = plugin.Playing.get(15);
|
String sixteen = plugin.Playing.get(15);
|
||||||
if(pname==sixteen){
|
if(pname==sixteen){
|
||||||
Player tsixteen = plugin.getServer().getPlayerExact(sixteen);
|
Player tsixteen = plugin.getServer().getPlayerExact(sixteen);
|
||||||
if(!tsixteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(sixteenspwn)){
|
String[] sixteencoords = plugin.config.getString("Tribute_sixteen_spawn").split(",");
|
||||||
|
double sixteenx = Double.parseDouble(sixteencoords[0]);
|
||||||
|
double sixteeny = Double.parseDouble(sixteencoords[1]);
|
||||||
|
double sixteenz = Double.parseDouble(sixteencoords[2]);
|
||||||
|
World sixteenw = plugin.getServer().getWorld(sixteencoords[3]);
|
||||||
|
Location sixteenspwn = new Location(sixteenw,sixteenx,sixteeny,sixteenz);
|
||||||
|
if(!tsixteen.getLocation().getBlock().getLocation().equals(sixteenspwn)){
|
||||||
if(!plugin.Dead.contains(tsixteen.getName())){
|
if(!plugin.Dead.contains(tsixteen.getName())){
|
||||||
World world = tsixteen.getLocation().getWorld();
|
World world = tsixteen.getLocation().getWorld();
|
||||||
world.createExplosion(tsixteen.getLocation(), 0.0F, false);
|
world.createExplosion(tsixteen.getLocation(), 0.0F, false);
|
||||||
@ -375,7 +326,13 @@ public class FreezeListener implements Listener {
|
|||||||
String seventeen = plugin.Playing.get(16);
|
String seventeen = plugin.Playing.get(16);
|
||||||
if(pname==seventeen){
|
if(pname==seventeen){
|
||||||
Player tseventeen = plugin.getServer().getPlayerExact(seventeen);
|
Player tseventeen = plugin.getServer().getPlayerExact(seventeen);
|
||||||
if(!tseventeen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(seventeenspwn)){
|
String[] seventeencoords = plugin.config.getString("Tribute_seventeen_spawn").split(",");
|
||||||
|
double seventeenx = Double.parseDouble(seventeencoords[0]);
|
||||||
|
double seventeeny = Double.parseDouble(seventeencoords[1]);
|
||||||
|
double seventeenz = Double.parseDouble(seventeencoords[2]);
|
||||||
|
World seventeenw = plugin.getServer().getWorld(seventeencoords[3]);
|
||||||
|
Location seventeenspwn = new Location(seventeenw,seventeenx,seventeeny,seventeenz);
|
||||||
|
if(!tseventeen.getLocation().getBlock().getLocation().equals(seventeenspwn)){
|
||||||
if(!plugin.Dead.contains(tseventeen.getName())){
|
if(!plugin.Dead.contains(tseventeen.getName())){
|
||||||
World world = tseventeen.getLocation().getWorld();
|
World world = tseventeen.getLocation().getWorld();
|
||||||
world.createExplosion(tseventeen.getLocation(), 0.0F, false);
|
world.createExplosion(tseventeen.getLocation(), 0.0F, false);
|
||||||
@ -388,7 +345,13 @@ public class FreezeListener implements Listener {
|
|||||||
String eighteen = plugin.Playing.get(17);
|
String eighteen = plugin.Playing.get(17);
|
||||||
if(pname==eighteen){
|
if(pname==eighteen){
|
||||||
Player teighteen = plugin.getServer().getPlayerExact(eighteen);
|
Player teighteen = plugin.getServer().getPlayerExact(eighteen);
|
||||||
if(!teighteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(eighteenspwn)){
|
String[] eighteencoords = plugin.config.getString("Tribute_eighteen_spawn").split(",");
|
||||||
|
double eighteenx = Double.parseDouble(eighteencoords[0]);
|
||||||
|
double eighteeny = Double.parseDouble(eighteencoords[1]);
|
||||||
|
double eighteenz = Double.parseDouble(eighteencoords[2]);
|
||||||
|
World eighteenw = plugin.getServer().getWorld(eighteencoords[3]);
|
||||||
|
Location eighteenspwn = new Location(eighteenw,eighteenx,eighteeny,eighteenz);
|
||||||
|
if(!teighteen.getLocation().getBlock().getLocation().equals(eighteenspwn)){
|
||||||
if(!plugin.Dead.contains(teighteen.getName())){
|
if(!plugin.Dead.contains(teighteen.getName())){
|
||||||
World world = teighteen.getLocation().getWorld();
|
World world = teighteen.getLocation().getWorld();
|
||||||
world.createExplosion(teighteen.getLocation(), 0.0F, false);
|
world.createExplosion(teighteen.getLocation(), 0.0F, false);
|
||||||
@ -401,7 +364,13 @@ public class FreezeListener implements Listener {
|
|||||||
String nineteen = plugin.Playing.get(18);
|
String nineteen = plugin.Playing.get(18);
|
||||||
if(pname==nineteen){
|
if(pname==nineteen){
|
||||||
Player tnineteen = plugin.getServer().getPlayerExact(nineteen);
|
Player tnineteen = plugin.getServer().getPlayerExact(nineteen);
|
||||||
if(!tnineteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(nineteenspwn)){
|
String[] nineteencoords = plugin.config.getString("Tribute_nineteen_spawn").split(",");
|
||||||
|
double nineteenx = Double.parseDouble(nineteencoords[0]);
|
||||||
|
double nineteeny = Double.parseDouble(nineteencoords[1]);
|
||||||
|
double nineteenz = Double.parseDouble(nineteencoords[2]);
|
||||||
|
World nineteenw = plugin.getServer().getWorld(nineteencoords[3]);
|
||||||
|
Location nineteenspwn = new Location(nineteenw,nineteenx,nineteeny,nineteenz);
|
||||||
|
if(!tnineteen.getLocation().getBlock().getLocation().equals(nineteenspwn)){
|
||||||
if(!plugin.Dead.contains(tnineteen.getName())){
|
if(!plugin.Dead.contains(tnineteen.getName())){
|
||||||
World world = tnineteen.getLocation().getWorld();
|
World world = tnineteen.getLocation().getWorld();
|
||||||
world.createExplosion(tnineteen.getLocation(), 0.0F, false);
|
world.createExplosion(tnineteen.getLocation(), 0.0F, false);
|
||||||
@ -414,7 +383,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twenty = plugin.Playing.get(19);
|
String twenty = plugin.Playing.get(19);
|
||||||
if(pname==twenty){
|
if(pname==twenty){
|
||||||
Player ttwenty = plugin.getServer().getPlayerExact(twenty);
|
Player ttwenty = plugin.getServer().getPlayerExact(twenty);
|
||||||
if(!ttwenty.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twentyspwn)){
|
String[] twentycoords = plugin.config.getString("Tribute_twenty_spawn").split(",");
|
||||||
|
double twentyx = Double.parseDouble(twentycoords[0]);
|
||||||
|
double twentyy = Double.parseDouble(twentycoords[1]);
|
||||||
|
double twentyz = Double.parseDouble(twentycoords[2]);
|
||||||
|
World twentyw = plugin.getServer().getWorld(twentycoords[3]);
|
||||||
|
Location twentyspwn = new Location(twentyw,twentyx,twentyy,twentyz);
|
||||||
|
if(!ttwenty.getLocation().getBlock().getLocation().equals(twentyspwn)){
|
||||||
if(!plugin.Dead.contains(ttwenty.getName())){
|
if(!plugin.Dead.contains(ttwenty.getName())){
|
||||||
World world = ttwenty.getLocation().getWorld();
|
World world = ttwenty.getLocation().getWorld();
|
||||||
world.createExplosion(ttwenty.getLocation(), 0.0F, false);
|
world.createExplosion(ttwenty.getLocation(), 0.0F, false);
|
||||||
@ -427,7 +402,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twentyone = plugin.Playing.get(20);
|
String twentyone = plugin.Playing.get(20);
|
||||||
if(pname==twentyone){
|
if(pname==twentyone){
|
||||||
Player ttwentyone = plugin.getServer().getPlayerExact(twentyone);
|
Player ttwentyone = plugin.getServer().getPlayerExact(twentyone);
|
||||||
if(!ttwentyone.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twentyonespwn)){
|
String[] twentyonecoords = plugin.config.getString("Tribute_twentyone_spawn").split(",");
|
||||||
|
double twentyonex = Double.parseDouble(twentyonecoords[0]);
|
||||||
|
double twentyoney = Double.parseDouble(twentyonecoords[1]);
|
||||||
|
double twentyonez = Double.parseDouble(twentyonecoords[2]);
|
||||||
|
World twentyonew = plugin.getServer().getWorld(twentyonecoords[3]);
|
||||||
|
Location twentyonespwn = new Location(twentyonew,twentyonex,twentyoney,twentyonez);
|
||||||
|
if(!ttwentyone.getLocation().getBlock().getLocation().equals(twentyonespwn)){
|
||||||
if(!plugin.Dead.contains(ttwentyone.getName())){
|
if(!plugin.Dead.contains(ttwentyone.getName())){
|
||||||
World world = ttwentyone.getLocation().getWorld();
|
World world = ttwentyone.getLocation().getWorld();
|
||||||
world.createExplosion(ttwentyone.getLocation(), 0.0F, false);
|
world.createExplosion(ttwentyone.getLocation(), 0.0F, false);
|
||||||
@ -440,7 +421,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twentytwo = plugin.Playing.get(21);
|
String twentytwo = plugin.Playing.get(21);
|
||||||
if(pname==twentytwo){
|
if(pname==twentytwo){
|
||||||
Player ttwentytwo = plugin.getServer().getPlayerExact(twentytwo);
|
Player ttwentytwo = plugin.getServer().getPlayerExact(twentytwo);
|
||||||
if(!ttwentytwo.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twentytwospwn)){
|
String[] twentytwocoords = plugin.config.getString("Tribute_twentytwo_spawn").split(",");
|
||||||
|
double twentytwox = Double.parseDouble(twentytwocoords[0]);
|
||||||
|
double twentytwoy = Double.parseDouble(twentytwocoords[1]);
|
||||||
|
double twentytwoz = Double.parseDouble(twentytwocoords[2]);
|
||||||
|
World twentytwow = plugin.getServer().getWorld(twentytwocoords[3]);
|
||||||
|
Location twentytwospwn = new Location(twentytwow,twentytwox,twentytwoy,twentytwoz);
|
||||||
|
if(!ttwentytwo.getLocation().getBlock().getLocation().equals(twentytwospwn)){
|
||||||
if(!plugin.Dead.contains(ttwentytwo.getName())){
|
if(!plugin.Dead.contains(ttwentytwo.getName())){
|
||||||
World world = ttwentytwo.getLocation().getWorld();
|
World world = ttwentytwo.getLocation().getWorld();
|
||||||
world.createExplosion(ttwentytwo.getLocation(), 0.0F, false);
|
world.createExplosion(ttwentytwo.getLocation(), 0.0F, false);
|
||||||
@ -453,7 +440,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twentythree = plugin.Playing.get(22);
|
String twentythree = plugin.Playing.get(22);
|
||||||
if(pname==twentythree){
|
if(pname==twentythree){
|
||||||
Player ttwentythree = plugin.getServer().getPlayerExact(twentythree);
|
Player ttwentythree = plugin.getServer().getPlayerExact(twentythree);
|
||||||
if(!ttwentythree.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twentythreespwn)){
|
String[] twentythreecoords = plugin.config.getString("Tribute_twentythree_spawn").split(",");
|
||||||
|
double twentythreex = Double.parseDouble(twentythreecoords[0]);
|
||||||
|
double twentythreey = Double.parseDouble(twentythreecoords[1]);
|
||||||
|
double twentythreez = Double.parseDouble(twentythreecoords[2]);
|
||||||
|
World twentythreew = plugin.getServer().getWorld(twentythreecoords[3]);
|
||||||
|
Location twentythreespwn = new Location(twentythreew,twentythreex,twentythreey,twentythreez);
|
||||||
|
if(!ttwentythree.getLocation().getBlock().getLocation().equals(twentythreespwn)){
|
||||||
if(!plugin.Dead.contains(ttwentythree.getName())){
|
if(!plugin.Dead.contains(ttwentythree.getName())){
|
||||||
World world = ttwentythree.getLocation().getWorld();
|
World world = ttwentythree.getLocation().getWorld();
|
||||||
world.createExplosion(ttwentythree.getLocation(), 0.0F, false);
|
world.createExplosion(ttwentythree.getLocation(), 0.0F, false);
|
||||||
@ -466,7 +459,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twentyfour = plugin.Playing.get(23);
|
String twentyfour = plugin.Playing.get(23);
|
||||||
if(pname==twentyfour){
|
if(pname==twentyfour){
|
||||||
Player ttwentyfour = plugin.getServer().getPlayerExact(twentyfour);
|
Player ttwentyfour = plugin.getServer().getPlayerExact(twentyfour);
|
||||||
if(!ttwentyfour.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twentyfourspwn)){
|
String[] twentyfourcoords = plugin.config.getString("Tribute_twentyfour_spawn").split(",");
|
||||||
|
double twentyfourx = Double.parseDouble(twentyfourcoords[0]);
|
||||||
|
double twentyfoury = Double.parseDouble(twentyfourcoords[1]);
|
||||||
|
double twentyfourz = Double.parseDouble(twentyfourcoords[2]);
|
||||||
|
World twentyfourw = plugin.getServer().getWorld(twentyfourcoords[3]);
|
||||||
|
Location twentyfourspwn = new Location(twentyfourw,twentyfourx,twentyfoury,twentyfourz);
|
||||||
|
if(!ttwentyfour.getLocation().getBlock().getLocation().equals(twentyfourspwn)){
|
||||||
if(!plugin.Dead.contains(ttwentyfour.getName())){
|
if(!plugin.Dead.contains(ttwentyfour.getName())){
|
||||||
World world = ttwentyfour.getLocation().getWorld();
|
World world = ttwentyfour.getLocation().getWorld();
|
||||||
world.createExplosion(ttwentyfour.getLocation(), 0.0F, false);
|
world.createExplosion(ttwentyfour.getLocation(), 0.0F, false);
|
||||||
@ -480,7 +479,13 @@ public class FreezeListener implements Listener {
|
|||||||
String one = plugin.Playing.get(0);
|
String one = plugin.Playing.get(0);
|
||||||
if(pname==one){
|
if(pname==one){
|
||||||
Player tone = plugin.getServer().getPlayerExact(one);
|
Player tone = plugin.getServer().getPlayerExact(one);
|
||||||
if(!tone.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(onespwn)){
|
String[] onecoords = plugin.config.getString("Tribute_one_spawn").split(",");
|
||||||
|
double x = Double.parseDouble(onecoords[0]);
|
||||||
|
double y = Double.parseDouble(onecoords[1]);
|
||||||
|
double z = Double.parseDouble(onecoords[2]);
|
||||||
|
World w = plugin.getServer().getWorld(onecoords[3]);
|
||||||
|
Location onespwn = new Location(w,x,y,z);
|
||||||
|
if(!tone.getLocation().getBlock().getLocation().equals(onespwn)){
|
||||||
tone.teleport(onespwn);
|
tone.teleport(onespwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -489,7 +494,13 @@ public class FreezeListener implements Listener {
|
|||||||
String two = plugin.Playing.get(1);
|
String two = plugin.Playing.get(1);
|
||||||
if(pname==two){
|
if(pname==two){
|
||||||
Player ttwo = plugin.getServer().getPlayerExact(two);
|
Player ttwo = plugin.getServer().getPlayerExact(two);
|
||||||
if(!ttwo.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twospwn)){
|
String[] twocoords = plugin.config.getString("Tribute_two_spawn").split(",");
|
||||||
|
double twox = Double.parseDouble(twocoords[0]);
|
||||||
|
double twoy = Double.parseDouble(twocoords[1]);
|
||||||
|
double twoz = Double.parseDouble(twocoords[2]);
|
||||||
|
World twow = plugin.getServer().getWorld(twocoords[3]);
|
||||||
|
Location twospwn = new Location(twow,twox,twoy,twoz);
|
||||||
|
if(!ttwo.getLocation().getBlock().getLocation().equals(twospwn)){
|
||||||
ttwo.teleport(twospwn);
|
ttwo.teleport(twospwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -498,7 +509,13 @@ public class FreezeListener implements Listener {
|
|||||||
String three = plugin.Playing.get(2);
|
String three = plugin.Playing.get(2);
|
||||||
if(pname==three){
|
if(pname==three){
|
||||||
Player tthree = plugin.getServer().getPlayerExact(three);
|
Player tthree = plugin.getServer().getPlayerExact(three);
|
||||||
if(!tthree.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(threespwn)){
|
String[] threecoords = plugin.config.getString("Tribute_three_spawn").split(",");
|
||||||
|
double threex = Double.parseDouble(threecoords[0]);
|
||||||
|
double threey = Double.parseDouble(threecoords[1]);
|
||||||
|
double threez = Double.parseDouble(threecoords[2]);
|
||||||
|
World threew = plugin.getServer().getWorld(threecoords[3]);
|
||||||
|
Location threespwn = new Location(threew,threex,threey,threez);
|
||||||
|
if(!tthree.getLocation().getBlock().getLocation().equals(threespwn)){
|
||||||
tthree.teleport(threespwn);
|
tthree.teleport(threespwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -507,7 +524,13 @@ public class FreezeListener implements Listener {
|
|||||||
String four = plugin.Playing.get(3);
|
String four = plugin.Playing.get(3);
|
||||||
if(pname==four){
|
if(pname==four){
|
||||||
Player tfour = plugin.getServer().getPlayerExact(four);
|
Player tfour = plugin.getServer().getPlayerExact(four);
|
||||||
if(!tfour.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(fourspwn)){
|
String[] fourcoords = plugin.config.getString("Tribute_four_spawn").split(",");
|
||||||
|
double fourx = Double.parseDouble(fourcoords[0]);
|
||||||
|
double foury = Double.parseDouble(fourcoords[1]);
|
||||||
|
double fourz = Double.parseDouble(fourcoords[2]);
|
||||||
|
World fourw = plugin.getServer().getWorld(fourcoords[3]);
|
||||||
|
Location fourspwn = new Location(fourw,fourx,foury,fourz);
|
||||||
|
if(!tfour.getLocation().getBlock().getLocation().equals(fourspwn)){
|
||||||
tfour.teleport(fourspwn);
|
tfour.teleport(fourspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -516,7 +539,13 @@ public class FreezeListener implements Listener {
|
|||||||
String five = plugin.Playing.get(4);
|
String five = plugin.Playing.get(4);
|
||||||
if(pname==five){
|
if(pname==five){
|
||||||
Player tfive = plugin.getServer().getPlayerExact(five);
|
Player tfive = plugin.getServer().getPlayerExact(five);
|
||||||
if(!tfive.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(fivespwn)){
|
String[] fivecoords = plugin.config.getString("Tribute_five_spawn").split(",");
|
||||||
|
double fivex = Double.parseDouble(fivecoords[0]);
|
||||||
|
double fivey = Double.parseDouble(fivecoords[1]);
|
||||||
|
double fivez = Double.parseDouble(fivecoords[2]);
|
||||||
|
World fivew = plugin.getServer().getWorld(fivecoords[3]);
|
||||||
|
Location fivespwn = new Location(fivew,fivex,fivey,fivez);
|
||||||
|
if(!tfive.getLocation().getBlock().getLocation().equals(fivespwn)){
|
||||||
tfive.teleport(fivespwn);
|
tfive.teleport(fivespwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -525,7 +554,13 @@ public class FreezeListener implements Listener {
|
|||||||
String six = plugin.Playing.get(5);
|
String six = plugin.Playing.get(5);
|
||||||
if(pname==six){
|
if(pname==six){
|
||||||
Player tsix = plugin.getServer().getPlayerExact(six);
|
Player tsix = plugin.getServer().getPlayerExact(six);
|
||||||
if(!tsix.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(sixspwn)){
|
String[] sixcoords = plugin.config.getString("Tribute_six_spawn").split(",");
|
||||||
|
double sixx = Double.parseDouble(sixcoords[0]);
|
||||||
|
double sixy = Double.parseDouble(sixcoords[1]);
|
||||||
|
double sixz = Double.parseDouble(sixcoords[2]);
|
||||||
|
World sixw = plugin.getServer().getWorld(sixcoords[3]);
|
||||||
|
Location sixspwn = new Location(sixw,sixx,sixy,sixz);
|
||||||
|
if(!tsix.getLocation().getBlock().getLocation().equals(sixspwn)){
|
||||||
tsix.teleport(sixspwn);
|
tsix.teleport(sixspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -534,7 +569,13 @@ public class FreezeListener implements Listener {
|
|||||||
String seven = plugin.Playing.get(6);
|
String seven = plugin.Playing.get(6);
|
||||||
if(pname==seven){
|
if(pname==seven){
|
||||||
Player tseven = plugin.getServer().getPlayerExact(seven);
|
Player tseven = plugin.getServer().getPlayerExact(seven);
|
||||||
if(!tseven.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(sevenspwn)){
|
String[] sevencoords = plugin.config.getString("Tribute_seven_spawn").split(",");
|
||||||
|
double sevenx = Double.parseDouble(sevencoords[0]);
|
||||||
|
double seveny = Double.parseDouble(sevencoords[1]);
|
||||||
|
double sevenz = Double.parseDouble(sevencoords[2]);
|
||||||
|
World sevenw = plugin.getServer().getWorld(sevencoords[3]);
|
||||||
|
Location sevenspwn = new Location(sevenw,sevenx,seveny,sevenz);
|
||||||
|
if(!tseven.getLocation().getBlock().getLocation().equals(sevenspwn)){
|
||||||
tseven.teleport(sevenspwn);
|
tseven.teleport(sevenspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -543,7 +584,13 @@ public class FreezeListener implements Listener {
|
|||||||
String eight = plugin.Playing.get(7);
|
String eight = plugin.Playing.get(7);
|
||||||
if(pname==eight){
|
if(pname==eight){
|
||||||
Player teight = plugin.getServer().getPlayerExact(eight);
|
Player teight = plugin.getServer().getPlayerExact(eight);
|
||||||
if(!teight.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(eightspwn)){
|
String[] eightcoords = plugin.config.getString("Tribute_eight_spawn").split(",");
|
||||||
|
double eightx = Double.parseDouble(eightcoords[0]);
|
||||||
|
double eighty = Double.parseDouble(eightcoords[1]);
|
||||||
|
double eightz = Double.parseDouble(eightcoords[2]);
|
||||||
|
World eightw = plugin.getServer().getWorld(eightcoords[3]);
|
||||||
|
Location eightspwn = new Location(eightw,eightx,eighty,eightz);
|
||||||
|
if(!teight.getLocation().getBlock().getLocation().equals(eightspwn)){
|
||||||
teight.teleport(eightspwn);
|
teight.teleport(eightspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -552,7 +599,13 @@ public class FreezeListener implements Listener {
|
|||||||
String nine = plugin.Playing.get(8);
|
String nine = plugin.Playing.get(8);
|
||||||
if(pname==nine){
|
if(pname==nine){
|
||||||
Player tnine = plugin.getServer().getPlayerExact(nine);
|
Player tnine = plugin.getServer().getPlayerExact(nine);
|
||||||
if(!tnine.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(ninespwn)){
|
String[] ninecoords = plugin.config.getString("Tribute_nine_spawn").split(",");
|
||||||
|
double ninex = Double.parseDouble(ninecoords[0]);
|
||||||
|
double niney = Double.parseDouble(ninecoords[1]);
|
||||||
|
double ninez = Double.parseDouble(ninecoords[2]);
|
||||||
|
World ninew = plugin.getServer().getWorld(ninecoords[3]);
|
||||||
|
Location ninespwn = new Location(ninew,ninex,niney,ninez);
|
||||||
|
if(!tnine.getLocation().getBlock().getLocation().equals(ninespwn)){
|
||||||
tnine.teleport(ninespwn);
|
tnine.teleport(ninespwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -561,7 +614,13 @@ public class FreezeListener implements Listener {
|
|||||||
String ten = plugin.Playing.get(9);
|
String ten = plugin.Playing.get(9);
|
||||||
if(pname==ten){
|
if(pname==ten){
|
||||||
Player tten = plugin.getServer().getPlayerExact(ten);
|
Player tten = plugin.getServer().getPlayerExact(ten);
|
||||||
if(!tten.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(tenspwn)){
|
String[] tencoords = plugin.config.getString("Tribute_ten_spawn").split(",");
|
||||||
|
double tenx = Double.parseDouble(tencoords[0]);
|
||||||
|
double teny = Double.parseDouble(tencoords[1]);
|
||||||
|
double tenz = Double.parseDouble(tencoords[2]);
|
||||||
|
World tenw = plugin.getServer().getWorld(tencoords[3]);
|
||||||
|
Location tenspwn = new Location(tenw,tenx,teny,tenz);
|
||||||
|
if(!tten.getLocation().getBlock().getLocation().equals(tenspwn)){
|
||||||
tten.teleport(tenspwn);
|
tten.teleport(tenspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -570,7 +629,13 @@ public class FreezeListener implements Listener {
|
|||||||
String eleven = plugin.Playing.get(10);
|
String eleven = plugin.Playing.get(10);
|
||||||
if(pname==eleven){
|
if(pname==eleven){
|
||||||
Player televen = plugin.getServer().getPlayerExact(eleven);
|
Player televen = plugin.getServer().getPlayerExact(eleven);
|
||||||
if(!televen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(elevenspwn)){
|
String[] elevencoords = plugin.config.getString("Tribute_eleven_spawn").split(",");
|
||||||
|
double elevenx = Double.parseDouble(elevencoords[0]);
|
||||||
|
double eleveny = Double.parseDouble(elevencoords[1]);
|
||||||
|
double elevenz = Double.parseDouble(elevencoords[2]);
|
||||||
|
World elevenw = plugin.getServer().getWorld(elevencoords[3]);
|
||||||
|
Location elevenspwn = new Location(elevenw,elevenx,eleveny,elevenz);
|
||||||
|
if(!televen.getLocation().getBlock().getLocation().equals(elevenspwn)){
|
||||||
televen.teleport(elevenspwn);
|
televen.teleport(elevenspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -579,7 +644,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twelve = plugin.Playing.get(11);
|
String twelve = plugin.Playing.get(11);
|
||||||
if(pname==twelve){
|
if(pname==twelve){
|
||||||
Player ttwelve = plugin.getServer().getPlayerExact(twelve);
|
Player ttwelve = plugin.getServer().getPlayerExact(twelve);
|
||||||
if(!ttwelve.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twelvespwn)){
|
String[] twelvecoords = plugin.config.getString("Tribute_twelve_spawn").split(",");
|
||||||
|
double twelvex = Double.parseDouble(twelvecoords[0]);
|
||||||
|
double twelvey = Double.parseDouble(twelvecoords[1]);
|
||||||
|
double twelvez = Double.parseDouble(twelvecoords[2]);
|
||||||
|
World twelvew = plugin.getServer().getWorld(twelvecoords[3]);
|
||||||
|
Location twelvespwn = new Location(twelvew,twelvex,twelvey,twelvez);
|
||||||
|
if(!ttwelve.getLocation().getBlock().getLocation().equals(twelvespwn)){
|
||||||
ttwelve.teleport(twelvespwn);
|
ttwelve.teleport(twelvespwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -588,7 +659,13 @@ public class FreezeListener implements Listener {
|
|||||||
String thirteen = plugin.Playing.get(12);
|
String thirteen = plugin.Playing.get(12);
|
||||||
if(pname==thirteen){
|
if(pname==thirteen){
|
||||||
Player tthirteen = plugin.getServer().getPlayerExact(thirteen);
|
Player tthirteen = plugin.getServer().getPlayerExact(thirteen);
|
||||||
if(!tthirteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(thirteenspwn)){
|
String[] thirteencoords = plugin.config.getString("Tribute_thirteen_spawn").split(",");
|
||||||
|
double thirteenx = Double.parseDouble(thirteencoords[0]);
|
||||||
|
double thirteeny = Double.parseDouble(thirteencoords[1]);
|
||||||
|
double thirteenz = Double.parseDouble(thirteencoords[2]);
|
||||||
|
World thirteenw = plugin.getServer().getWorld(thirteencoords[3]);
|
||||||
|
Location thirteenspwn = new Location(thirteenw,thirteenx,thirteeny,thirteenz);
|
||||||
|
if(!tthirteen.getLocation().getBlock().getLocation().equals(thirteenspwn)){
|
||||||
tthirteen.teleport(thirteenspwn);
|
tthirteen.teleport(thirteenspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -597,7 +674,13 @@ public class FreezeListener implements Listener {
|
|||||||
String fourteen = plugin.Playing.get(13);
|
String fourteen = plugin.Playing.get(13);
|
||||||
if(pname==fourteen){
|
if(pname==fourteen){
|
||||||
Player tfourteen = plugin.getServer().getPlayerExact(fourteen);
|
Player tfourteen = plugin.getServer().getPlayerExact(fourteen);
|
||||||
if(!tfourteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(fourteenspwn)){
|
String[] fourteencoords = plugin.config.getString("Tribute_fourteen_spawn").split(",");
|
||||||
|
double fourteenx = Double.parseDouble(fourteencoords[0]);
|
||||||
|
double fourteeny = Double.parseDouble(fourteencoords[1]);
|
||||||
|
double fourteenz = Double.parseDouble(fourteencoords[2]);
|
||||||
|
World fourteenw = plugin.getServer().getWorld(fourteencoords[3]);
|
||||||
|
Location fourteenspwn = new Location(fourteenw,fourteenx,fourteeny,fourteenz);
|
||||||
|
if(!tfourteen.getLocation().getBlock().getLocation().equals(fourteenspwn)){
|
||||||
tfourteen.teleport(fourteenspwn);
|
tfourteen.teleport(fourteenspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -606,7 +689,13 @@ public class FreezeListener implements Listener {
|
|||||||
String fifteen = plugin.Playing.get(14);
|
String fifteen = plugin.Playing.get(14);
|
||||||
if(pname==fifteen){
|
if(pname==fifteen){
|
||||||
Player tfifteen = plugin.getServer().getPlayerExact(fifteen);
|
Player tfifteen = plugin.getServer().getPlayerExact(fifteen);
|
||||||
if(!tfifteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(fifteenspwn)){
|
String[] fifteencoords = plugin.config.getString("Tribute_fifteen_spawn").split(",");
|
||||||
|
double fifteenx = Double.parseDouble(fifteencoords[0]);
|
||||||
|
double fifteeny = Double.parseDouble(fifteencoords[1]);
|
||||||
|
double fifteenz = Double.parseDouble(fifteencoords[2]);
|
||||||
|
World fifteenw = plugin.getServer().getWorld(fifteencoords[3]);
|
||||||
|
Location fifteenspwn = new Location(fifteenw,fifteenx,fifteeny,fifteenz);
|
||||||
|
if(!tfifteen.getLocation().getBlock().getLocation().equals(fifteenspwn)){
|
||||||
tfifteen.teleport(fifteenspwn);
|
tfifteen.teleport(fifteenspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -615,7 +704,13 @@ public class FreezeListener implements Listener {
|
|||||||
String sixteen = plugin.Playing.get(15);
|
String sixteen = plugin.Playing.get(15);
|
||||||
if(pname==sixteen){
|
if(pname==sixteen){
|
||||||
Player tsixteen = plugin.getServer().getPlayerExact(sixteen);
|
Player tsixteen = plugin.getServer().getPlayerExact(sixteen);
|
||||||
if(!tsixteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(sixteenspwn)){
|
String[] sixteencoords = plugin.config.getString("Tribute_sixteen_spawn").split(",");
|
||||||
|
double sixteenx = Double.parseDouble(sixteencoords[0]);
|
||||||
|
double sixteeny = Double.parseDouble(sixteencoords[1]);
|
||||||
|
double sixteenz = Double.parseDouble(sixteencoords[2]);
|
||||||
|
World sixteenw = plugin.getServer().getWorld(sixteencoords[3]);
|
||||||
|
Location sixteenspwn = new Location(sixteenw,sixteenx,sixteeny,sixteenz);
|
||||||
|
if(!tsixteen.getLocation().getBlock().getLocation().equals(sixteenspwn)){
|
||||||
tsixteen.teleport(sixteenspwn);
|
tsixteen.teleport(sixteenspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -624,7 +719,13 @@ public class FreezeListener implements Listener {
|
|||||||
String seventeen = plugin.Playing.get(16);
|
String seventeen = plugin.Playing.get(16);
|
||||||
if(pname==seventeen){
|
if(pname==seventeen){
|
||||||
Player tseventeen = plugin.getServer().getPlayerExact(seventeen);
|
Player tseventeen = plugin.getServer().getPlayerExact(seventeen);
|
||||||
if(!tseventeen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(seventeenspwn)){
|
String[] seventeencoords = plugin.config.getString("Tribute_seventeen_spawn").split(",");
|
||||||
|
double seventeenx = Double.parseDouble(seventeencoords[0]);
|
||||||
|
double seventeeny = Double.parseDouble(seventeencoords[1]);
|
||||||
|
double seventeenz = Double.parseDouble(seventeencoords[2]);
|
||||||
|
World seventeenw = plugin.getServer().getWorld(seventeencoords[3]);
|
||||||
|
Location seventeenspwn = new Location(seventeenw,seventeenx,seventeeny,seventeenz);
|
||||||
|
if(!tseventeen.getLocation().getBlock().getLocation().equals(seventeenspwn)){
|
||||||
tseventeen.teleport(seventeenspwn);
|
tseventeen.teleport(seventeenspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -633,7 +734,13 @@ public class FreezeListener implements Listener {
|
|||||||
String eighteen = plugin.Playing.get(17);
|
String eighteen = plugin.Playing.get(17);
|
||||||
if(pname==eighteen){
|
if(pname==eighteen){
|
||||||
Player teighteen = plugin.getServer().getPlayerExact(eighteen);
|
Player teighteen = plugin.getServer().getPlayerExact(eighteen);
|
||||||
if(!teighteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(eighteenspwn)){
|
String[] eighteencoords = plugin.config.getString("Tribute_eighteen_spawn").split(",");
|
||||||
|
double eighteenx = Double.parseDouble(eighteencoords[0]);
|
||||||
|
double eighteeny = Double.parseDouble(eighteencoords[1]);
|
||||||
|
double eighteenz = Double.parseDouble(eighteencoords[2]);
|
||||||
|
World eighteenw = plugin.getServer().getWorld(eighteencoords[3]);
|
||||||
|
Location eighteenspwn = new Location(eighteenw,eighteenx,eighteeny,eighteenz);
|
||||||
|
if(!teighteen.getLocation().getBlock().getLocation().equals(eighteenspwn)){
|
||||||
teighteen.teleport(eighteenspwn);
|
teighteen.teleport(eighteenspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -642,7 +749,13 @@ public class FreezeListener implements Listener {
|
|||||||
String nineteen = plugin.Playing.get(18);
|
String nineteen = plugin.Playing.get(18);
|
||||||
if(pname==nineteen){
|
if(pname==nineteen){
|
||||||
Player tnineteen = plugin.getServer().getPlayerExact(nineteen);
|
Player tnineteen = plugin.getServer().getPlayerExact(nineteen);
|
||||||
if(!tnineteen.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(nineteenspwn)){
|
String[] nineteencoords = plugin.config.getString("Tribute_nineteen_spawn").split(",");
|
||||||
|
double nineteenx = Double.parseDouble(nineteencoords[0]);
|
||||||
|
double nineteeny = Double.parseDouble(nineteencoords[1]);
|
||||||
|
double nineteenz = Double.parseDouble(nineteencoords[2]);
|
||||||
|
World nineteenw = plugin.getServer().getWorld(nineteencoords[3]);
|
||||||
|
Location nineteenspwn = new Location(nineteenw,nineteenx,nineteeny,nineteenz);
|
||||||
|
if(!tnineteen.getLocation().getBlock().getLocation().equals(nineteenspwn)){
|
||||||
tnineteen.teleport(nineteenspwn);
|
tnineteen.teleport(nineteenspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -651,7 +764,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twenty = plugin.Playing.get(19);
|
String twenty = plugin.Playing.get(19);
|
||||||
if(pname==twenty){
|
if(pname==twenty){
|
||||||
Player ttwenty = plugin.getServer().getPlayerExact(twenty);
|
Player ttwenty = plugin.getServer().getPlayerExact(twenty);
|
||||||
if(!ttwenty.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twentyspwn)){
|
String[] twentycoords = plugin.config.getString("Tribute_twenty_spawn").split(",");
|
||||||
|
double twentyx = Double.parseDouble(twentycoords[0]);
|
||||||
|
double twentyy = Double.parseDouble(twentycoords[1]);
|
||||||
|
double twentyz = Double.parseDouble(twentycoords[2]);
|
||||||
|
World twentyw = plugin.getServer().getWorld(twentycoords[3]);
|
||||||
|
Location twentyspwn = new Location(twentyw,twentyx,twentyy,twentyz);
|
||||||
|
if(!ttwenty.getLocation().getBlock().getLocation().equals(twentyspwn)){
|
||||||
ttwenty.teleport(twentyspwn);
|
ttwenty.teleport(twentyspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -660,7 +779,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twentyone = plugin.Playing.get(20);
|
String twentyone = plugin.Playing.get(20);
|
||||||
if(pname==twentyone){
|
if(pname==twentyone){
|
||||||
Player ttwentyone = plugin.getServer().getPlayerExact(twentyone);
|
Player ttwentyone = plugin.getServer().getPlayerExact(twentyone);
|
||||||
if(!ttwentyone.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twentyonespwn)){
|
String[] twentyonecoords = plugin.config.getString("Tribute_twentyone_spawn").split(",");
|
||||||
|
double twentyonex = Double.parseDouble(twentyonecoords[0]);
|
||||||
|
double twentyoney = Double.parseDouble(twentyonecoords[1]);
|
||||||
|
double twentyonez = Double.parseDouble(twentyonecoords[2]);
|
||||||
|
World twentyonew = plugin.getServer().getWorld(twentyonecoords[3]);
|
||||||
|
Location twentyonespwn = new Location(twentyonew,twentyonex,twentyoney,twentyonez);
|
||||||
|
if(!ttwentyone.getLocation().getBlock().getLocation().equals(twentyonespwn)){
|
||||||
ttwentyone.teleport(twentyonespwn);
|
ttwentyone.teleport(twentyonespwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -669,7 +794,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twentytwo = plugin.Playing.get(21);
|
String twentytwo = plugin.Playing.get(21);
|
||||||
if(pname==twentytwo){
|
if(pname==twentytwo){
|
||||||
Player ttwentytwo = plugin.getServer().getPlayerExact(twentytwo);
|
Player ttwentytwo = plugin.getServer().getPlayerExact(twentytwo);
|
||||||
if(!ttwentytwo.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twentytwospwn)){
|
String[] twentytwocoords = plugin.config.getString("Tribute_twentytwo_spawn").split(",");
|
||||||
|
double twentytwox = Double.parseDouble(twentytwocoords[0]);
|
||||||
|
double twentytwoy = Double.parseDouble(twentytwocoords[1]);
|
||||||
|
double twentytwoz = Double.parseDouble(twentytwocoords[2]);
|
||||||
|
World twentytwow = plugin.getServer().getWorld(twentytwocoords[3]);
|
||||||
|
Location twentytwospwn = new Location(twentytwow,twentytwox,twentytwoy,twentytwoz);
|
||||||
|
if(!ttwentytwo.getLocation().getBlock().getLocation().equals(twentytwospwn)){
|
||||||
ttwentytwo.teleport(twentytwospwn);
|
ttwentytwo.teleport(twentytwospwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -678,7 +809,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twentythree = plugin.Playing.get(22);
|
String twentythree = plugin.Playing.get(22);
|
||||||
if(pname==twentythree){
|
if(pname==twentythree){
|
||||||
Player ttwentythree = plugin.getServer().getPlayerExact(twentythree);
|
Player ttwentythree = plugin.getServer().getPlayerExact(twentythree);
|
||||||
if(!ttwentythree.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twentythreespwn)){
|
String[] twentythreecoords = plugin.config.getString("Tribute_twentythree_spawn").split(",");
|
||||||
|
double twentythreex = Double.parseDouble(twentythreecoords[0]);
|
||||||
|
double twentythreey = Double.parseDouble(twentythreecoords[1]);
|
||||||
|
double twentythreez = Double.parseDouble(twentythreecoords[2]);
|
||||||
|
World twentythreew = plugin.getServer().getWorld(twentythreecoords[3]);
|
||||||
|
Location twentythreespwn = new Location(twentythreew,twentythreex,twentythreey,twentythreez);
|
||||||
|
if(!ttwentythree.getLocation().getBlock().getLocation().equals(twentythreespwn)){
|
||||||
ttwentythree.teleport(twentythreespwn);
|
ttwentythree.teleport(twentythreespwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -687,7 +824,13 @@ public class FreezeListener implements Listener {
|
|||||||
String twentyfour = plugin.Playing.get(23);
|
String twentyfour = plugin.Playing.get(23);
|
||||||
if(pname==twentyfour){
|
if(pname==twentyfour){
|
||||||
Player ttwentyfour = plugin.getServer().getPlayerExact(twentyfour);
|
Player ttwentyfour = plugin.getServer().getPlayerExact(twentyfour);
|
||||||
if(!ttwentyfour.getLocation().getBlock().getRelative(BlockFace.DOWN).equals(twentyfourspwn)){
|
String[] twentyfourcoords = plugin.config.getString("Tribute_twentyfour_spawn").split(",");
|
||||||
|
double twentyfourx = Double.parseDouble(twentyfourcoords[0]);
|
||||||
|
double twentyfoury = Double.parseDouble(twentyfourcoords[1]);
|
||||||
|
double twentyfourz = Double.parseDouble(twentyfourcoords[2]);
|
||||||
|
World twentyfourw = plugin.getServer().getWorld(twentyfourcoords[3]);
|
||||||
|
Location twentyfourspwn = new Location(twentyfourw,twentyfourx,twentyfoury,twentyfourz);
|
||||||
|
if(!ttwentyfour.getLocation().getBlock().getLocation().equals(twentyfourspwn)){
|
||||||
ttwentyfour.teleport(twentyfourspwn);
|
ttwentyfour.teleport(twentyfourspwn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,6 @@ import org.bukkit.ChatColor;
|
|||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.block.BlockFace;
|
|
||||||
import org.bukkit.block.Chest;
|
import org.bukkit.block.Chest;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
@ -378,7 +377,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = onecoords[3];
|
String world = onecoords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location oneloc = new Location(w, x, y, z);
|
Location oneloc = new Location(w, x, y, z);
|
||||||
oneloc = oneloc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_one.teleport(oneloc);
|
Tribute_one.teleport(oneloc);
|
||||||
plugin.Frozen.add(Tribute_one.getName());
|
plugin.Frozen.add(Tribute_one.getName());
|
||||||
Tribute_one.setFoodLevel(20);
|
Tribute_one.setFoodLevel(20);
|
||||||
@ -391,7 +389,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String twoworld = twocoords[3];
|
String twoworld = twocoords[3];
|
||||||
World twow = plugin.getServer().getWorld(twoworld);
|
World twow = plugin.getServer().getWorld(twoworld);
|
||||||
Location twoloc = new Location(twow, twox, twoy, twoz);
|
Location twoloc = new Location(twow, twox, twoy, twoz);
|
||||||
twoloc = twoloc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_two.teleport(twoloc);
|
Tribute_two.teleport(twoloc);
|
||||||
plugin.Frozen.add(Tribute_two.getName());
|
plugin.Frozen.add(Tribute_two.getName());
|
||||||
Tribute_two.setFoodLevel(20);
|
Tribute_two.setFoodLevel(20);
|
||||||
@ -419,7 +416,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_three.teleport(loc);
|
Tribute_three.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_three.getName());
|
plugin.Frozen.add(Tribute_three.getName());
|
||||||
Tribute_three.setFoodLevel(20);
|
Tribute_three.setFoodLevel(20);
|
||||||
@ -434,7 +430,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_four.teleport(loc);
|
Tribute_four.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_four.getName());
|
plugin.Frozen.add(Tribute_four.getName());
|
||||||
Tribute_four.setFoodLevel(20);
|
Tribute_four.setFoodLevel(20);
|
||||||
@ -449,7 +444,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_five.teleport(loc);
|
Tribute_five.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_five.getName());
|
plugin.Frozen.add(Tribute_five.getName());
|
||||||
Tribute_five.setFoodLevel(20);
|
Tribute_five.setFoodLevel(20);
|
||||||
@ -464,7 +458,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_six.teleport(loc);
|
Tribute_six.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_six.getName());
|
plugin.Frozen.add(Tribute_six.getName());
|
||||||
Tribute_six.setFoodLevel(20);
|
Tribute_six.setFoodLevel(20);
|
||||||
@ -479,7 +472,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_seven.teleport(loc);
|
Tribute_seven.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_seven.getName());
|
plugin.Frozen.add(Tribute_seven.getName());
|
||||||
Tribute_seven.setFoodLevel(20);
|
Tribute_seven.setFoodLevel(20);
|
||||||
@ -494,7 +486,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_eight.teleport(loc);
|
Tribute_eight.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_eight.getName());
|
plugin.Frozen.add(Tribute_eight.getName());
|
||||||
Tribute_eight.setFoodLevel(20);
|
Tribute_eight.setFoodLevel(20);
|
||||||
@ -509,7 +500,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_nine.teleport(loc);
|
Tribute_nine.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_nine.getName());
|
plugin.Frozen.add(Tribute_nine.getName());
|
||||||
Tribute_nine.setFoodLevel(20);
|
Tribute_nine.setFoodLevel(20);
|
||||||
@ -524,7 +514,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_ten.teleport(loc);
|
Tribute_ten.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_ten.getName());
|
plugin.Frozen.add(Tribute_ten.getName());
|
||||||
Tribute_ten.setFoodLevel(20);
|
Tribute_ten.setFoodLevel(20);
|
||||||
@ -539,7 +528,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_eleven.teleport(loc);
|
Tribute_eleven.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_eleven.getName());
|
plugin.Frozen.add(Tribute_eleven.getName());
|
||||||
Tribute_eleven.setFoodLevel(20);
|
Tribute_eleven.setFoodLevel(20);
|
||||||
@ -554,7 +542,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twelve.teleport(loc);
|
Tribute_twelve.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twelve.getName());
|
plugin.Frozen.add(Tribute_twelve.getName());
|
||||||
Tribute_twelve.setFoodLevel(20);
|
Tribute_twelve.setFoodLevel(20);
|
||||||
@ -569,7 +556,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_thirteen.teleport(loc);
|
Tribute_thirteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_thirteen.getName());
|
plugin.Frozen.add(Tribute_thirteen.getName());
|
||||||
Tribute_thirteen.setFoodLevel(20);
|
Tribute_thirteen.setFoodLevel(20);
|
||||||
@ -584,7 +570,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_fourteen.teleport(loc);
|
Tribute_fourteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_fourteen.getName());
|
plugin.Frozen.add(Tribute_fourteen.getName());
|
||||||
Tribute_fourteen.setFoodLevel(20);
|
Tribute_fourteen.setFoodLevel(20);
|
||||||
@ -599,7 +584,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_fifteen.teleport(loc);
|
Tribute_fifteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_fifteen.getName());
|
plugin.Frozen.add(Tribute_fifteen.getName());
|
||||||
Tribute_fifteen.setFoodLevel(20);
|
Tribute_fifteen.setFoodLevel(20);
|
||||||
@ -614,7 +598,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_sixteen.teleport(loc);
|
Tribute_sixteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_sixteen.getName());
|
plugin.Frozen.add(Tribute_sixteen.getName());
|
||||||
Tribute_sixteen.setFoodLevel(20);
|
Tribute_sixteen.setFoodLevel(20);
|
||||||
@ -629,7 +612,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_seventeen.teleport(loc);
|
Tribute_seventeen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_seventeen.getName());
|
plugin.Frozen.add(Tribute_seventeen.getName());
|
||||||
Tribute_seventeen.setFoodLevel(20);
|
Tribute_seventeen.setFoodLevel(20);
|
||||||
@ -644,7 +626,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_eighteen.teleport(loc);
|
Tribute_eighteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_eighteen.getName());
|
plugin.Frozen.add(Tribute_eighteen.getName());
|
||||||
Tribute_eighteen.setFoodLevel(20);
|
Tribute_eighteen.setFoodLevel(20);
|
||||||
@ -659,7 +640,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_nineteen.teleport(loc);
|
Tribute_nineteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_nineteen.getName());
|
plugin.Frozen.add(Tribute_nineteen.getName());
|
||||||
Tribute_nineteen.setFoodLevel(20);
|
Tribute_nineteen.setFoodLevel(20);
|
||||||
@ -674,7 +654,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twenty.teleport(loc);
|
Tribute_twenty.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twenty.getName());
|
plugin.Frozen.add(Tribute_twenty.getName());
|
||||||
Tribute_twenty.setFoodLevel(20);
|
Tribute_twenty.setFoodLevel(20);
|
||||||
@ -689,7 +668,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twentyone.teleport(loc);
|
Tribute_twentyone.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twentyone.getName());
|
plugin.Frozen.add(Tribute_twentyone.getName());
|
||||||
Tribute_twentyone.setFoodLevel(20);
|
Tribute_twentyone.setFoodLevel(20);
|
||||||
@ -704,7 +682,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twentytwo.teleport(loc);
|
Tribute_twentytwo.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twentytwo.getName());
|
plugin.Frozen.add(Tribute_twentytwo.getName());
|
||||||
Tribute_twentytwo.setFoodLevel(20);
|
Tribute_twentytwo.setFoodLevel(20);
|
||||||
@ -719,7 +696,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twentythree.teleport(loc);
|
Tribute_twentythree.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twentythree.getName());
|
plugin.Frozen.add(Tribute_twentythree.getName());
|
||||||
Tribute_twentythree.setFoodLevel(20);
|
Tribute_twentythree.setFoodLevel(20);
|
||||||
@ -734,7 +710,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twentyfour.teleport(loc);
|
Tribute_twentyfour.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twentyfour.getName());
|
plugin.Frozen.add(Tribute_twentyfour.getName());
|
||||||
Tribute_twentyfour.setFoodLevel(20);
|
Tribute_twentyfour.setFoodLevel(20);
|
||||||
@ -983,7 +958,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = onecoords[3];
|
String world = onecoords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location oneloc = new Location(w, x, y, z);
|
Location oneloc = new Location(w, x, y, z);
|
||||||
oneloc = oneloc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_one.teleport(oneloc);
|
Tribute_one.teleport(oneloc);
|
||||||
plugin.Frozen.add(Tribute_one.getName());
|
plugin.Frozen.add(Tribute_one.getName());
|
||||||
Tribute_one.setFoodLevel(20);
|
Tribute_one.setFoodLevel(20);
|
||||||
@ -996,7 +970,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String twoworld = twocoords[3];
|
String twoworld = twocoords[3];
|
||||||
World twow = plugin.getServer().getWorld(twoworld);
|
World twow = plugin.getServer().getWorld(twoworld);
|
||||||
Location twoloc = new Location(twow, twox, twoy, twoz);
|
Location twoloc = new Location(twow, twox, twoy, twoz);
|
||||||
twoloc = twoloc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_two.teleport(twoloc);
|
Tribute_two.teleport(twoloc);
|
||||||
plugin.Frozen.add(Tribute_two.getName());
|
plugin.Frozen.add(Tribute_two.getName());
|
||||||
Tribute_two.setFoodLevel(20);
|
Tribute_two.setFoodLevel(20);
|
||||||
@ -1024,7 +997,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_three.teleport(loc);
|
Tribute_three.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_three.getName());
|
plugin.Frozen.add(Tribute_three.getName());
|
||||||
Tribute_three.setFoodLevel(20);
|
Tribute_three.setFoodLevel(20);
|
||||||
@ -1039,7 +1011,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_four.teleport(loc);
|
Tribute_four.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_four.getName());
|
plugin.Frozen.add(Tribute_four.getName());
|
||||||
Tribute_four.setFoodLevel(20);
|
Tribute_four.setFoodLevel(20);
|
||||||
@ -1054,7 +1025,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_five.teleport(loc);
|
Tribute_five.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_five.getName());
|
plugin.Frozen.add(Tribute_five.getName());
|
||||||
Tribute_five.setFoodLevel(20);
|
Tribute_five.setFoodLevel(20);
|
||||||
@ -1069,7 +1039,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_six.teleport(loc);
|
Tribute_six.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_six.getName());
|
plugin.Frozen.add(Tribute_six.getName());
|
||||||
Tribute_six.setFoodLevel(20);
|
Tribute_six.setFoodLevel(20);
|
||||||
@ -1084,7 +1053,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_seven.teleport(loc);
|
Tribute_seven.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_seven.getName());
|
plugin.Frozen.add(Tribute_seven.getName());
|
||||||
Tribute_seven.setFoodLevel(20);
|
Tribute_seven.setFoodLevel(20);
|
||||||
@ -1099,7 +1067,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_eight.teleport(loc);
|
Tribute_eight.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_eight.getName());
|
plugin.Frozen.add(Tribute_eight.getName());
|
||||||
Tribute_eight.setFoodLevel(20);
|
Tribute_eight.setFoodLevel(20);
|
||||||
@ -1114,7 +1081,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_nine.teleport(loc);
|
Tribute_nine.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_nine.getName());
|
plugin.Frozen.add(Tribute_nine.getName());
|
||||||
Tribute_nine.setFoodLevel(20);
|
Tribute_nine.setFoodLevel(20);
|
||||||
@ -1129,7 +1095,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_ten.teleport(loc);
|
Tribute_ten.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_ten.getName());
|
plugin.Frozen.add(Tribute_ten.getName());
|
||||||
Tribute_ten.setFoodLevel(20);
|
Tribute_ten.setFoodLevel(20);
|
||||||
@ -1144,7 +1109,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_eleven.teleport(loc);
|
Tribute_eleven.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_eleven.getName());
|
plugin.Frozen.add(Tribute_eleven.getName());
|
||||||
Tribute_eleven.setFoodLevel(20);
|
Tribute_eleven.setFoodLevel(20);
|
||||||
@ -1159,7 +1123,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twelve.teleport(loc);
|
Tribute_twelve.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twelve.getName());
|
plugin.Frozen.add(Tribute_twelve.getName());
|
||||||
Tribute_twelve.setFoodLevel(20);
|
Tribute_twelve.setFoodLevel(20);
|
||||||
@ -1174,7 +1137,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_thirteen.teleport(loc);
|
Tribute_thirteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_thirteen.getName());
|
plugin.Frozen.add(Tribute_thirteen.getName());
|
||||||
Tribute_thirteen.setFoodLevel(20);
|
Tribute_thirteen.setFoodLevel(20);
|
||||||
@ -1189,7 +1151,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_fourteen.teleport(loc);
|
Tribute_fourteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_fourteen.getName());
|
plugin.Frozen.add(Tribute_fourteen.getName());
|
||||||
Tribute_fourteen.setFoodLevel(20);
|
Tribute_fourteen.setFoodLevel(20);
|
||||||
@ -1204,7 +1165,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_fifteen.teleport(loc);
|
Tribute_fifteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_fifteen.getName());
|
plugin.Frozen.add(Tribute_fifteen.getName());
|
||||||
Tribute_fifteen.setFoodLevel(20);
|
Tribute_fifteen.setFoodLevel(20);
|
||||||
@ -1219,7 +1179,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_sixteen.teleport(loc);
|
Tribute_sixteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_sixteen.getName());
|
plugin.Frozen.add(Tribute_sixteen.getName());
|
||||||
Tribute_sixteen.setFoodLevel(20);
|
Tribute_sixteen.setFoodLevel(20);
|
||||||
@ -1234,7 +1193,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_seventeen.teleport(loc);
|
Tribute_seventeen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_seventeen.getName());
|
plugin.Frozen.add(Tribute_seventeen.getName());
|
||||||
Tribute_seventeen.setFoodLevel(20);
|
Tribute_seventeen.setFoodLevel(20);
|
||||||
@ -1249,7 +1207,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_eighteen.teleport(loc);
|
Tribute_eighteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_eighteen.getName());
|
plugin.Frozen.add(Tribute_eighteen.getName());
|
||||||
Tribute_eighteen.setFoodLevel(20);
|
Tribute_eighteen.setFoodLevel(20);
|
||||||
@ -1264,7 +1221,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_nineteen.teleport(loc);
|
Tribute_nineteen.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_nineteen.getName());
|
plugin.Frozen.add(Tribute_nineteen.getName());
|
||||||
Tribute_nineteen.setFoodLevel(20);
|
Tribute_nineteen.setFoodLevel(20);
|
||||||
@ -1279,7 +1235,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twenty.teleport(loc);
|
Tribute_twenty.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twenty.getName());
|
plugin.Frozen.add(Tribute_twenty.getName());
|
||||||
Tribute_twenty.setFoodLevel(20);
|
Tribute_twenty.setFoodLevel(20);
|
||||||
@ -1294,7 +1249,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twentyone.teleport(loc);
|
Tribute_twentyone.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twentyone.getName());
|
plugin.Frozen.add(Tribute_twentyone.getName());
|
||||||
Tribute_twentyone.setFoodLevel(20);
|
Tribute_twentyone.setFoodLevel(20);
|
||||||
@ -1309,7 +1263,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twentytwo.teleport(loc);
|
Tribute_twentytwo.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twentytwo.getName());
|
plugin.Frozen.add(Tribute_twentytwo.getName());
|
||||||
Tribute_twentytwo.setFoodLevel(20);
|
Tribute_twentytwo.setFoodLevel(20);
|
||||||
@ -1324,7 +1277,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twentythree.teleport(loc);
|
Tribute_twentythree.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twentythree.getName());
|
plugin.Frozen.add(Tribute_twentythree.getName());
|
||||||
Tribute_twentythree.setFoodLevel(20);
|
Tribute_twentythree.setFoodLevel(20);
|
||||||
@ -1339,7 +1291,6 @@ public class HaCommands implements CommandExecutor {
|
|||||||
String world = coords[3];
|
String world = coords[3];
|
||||||
World w = plugin.getServer().getWorld(world);
|
World w = plugin.getServer().getWorld(world);
|
||||||
Location loc = new Location(w, x, y, z);
|
Location loc = new Location(w, x, y, z);
|
||||||
loc = loc.getBlock().getRelative(BlockFace.UP).getLocation();
|
|
||||||
Tribute_twentyfour.teleport(loc);
|
Tribute_twentyfour.teleport(loc);
|
||||||
plugin.Frozen.add(Tribute_twentyfour.getName());
|
plugin.Frozen.add(Tribute_twentyfour.getName());
|
||||||
Tribute_twentyfour.setFoodLevel(20);
|
Tribute_twentyfour.setFoodLevel(20);
|
||||||
|
@ -2,7 +2,6 @@ package me.Travja.HungerArena;
|
|||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.block.BlockFace;
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@ -19,220 +18,219 @@ public class SpawnsCommand implements CommandExecutor {
|
|||||||
Player p = (Player) sender;
|
Player p = (Player) sender;
|
||||||
if(cmd.getName().equalsIgnoreCase("StartPoint")){
|
if(cmd.getName().equalsIgnoreCase("StartPoint")){
|
||||||
if(p.hasPermission("HungerArena.StartPoint")){
|
if(p.hasPermission("HungerArena.StartPoint")){
|
||||||
Location ploc = p.getLocation();
|
Location ploc = p.getLocation().getBlock().getLocation();
|
||||||
Location bloc = ploc.getBlock().getRelative(BlockFace.DOWN).getLocation();
|
|
||||||
if(args[0].equalsIgnoreCase("1")){
|
if(args[0].equalsIgnoreCase("1")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_one_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_one_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute one!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute one!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("2")){
|
if(args[0].equalsIgnoreCase("2")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_two_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_two_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute two!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute two!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("3")){
|
if(args[0].equalsIgnoreCase("3")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_three_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_three_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute three!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute three!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("4")){
|
if(args[0].equalsIgnoreCase("4")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_four_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_four_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute four!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute four!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("5")){
|
if(args[0].equalsIgnoreCase("5")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_five_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_five_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute five!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute five!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("6")){
|
if(args[0].equalsIgnoreCase("6")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_six_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_six_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute six!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute six!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("7")){
|
if(args[0].equalsIgnoreCase("7")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_seven_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_seven_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute seven!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute seven!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("8")){
|
if(args[0].equalsIgnoreCase("8")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_eight_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_eight_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eight!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eight!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("9")){
|
if(args[0].equalsIgnoreCase("9")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_nine_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_nine_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute nine!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute nine!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("10")){
|
if(args[0].equalsIgnoreCase("10")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_ten_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_ten_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute ten!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute ten!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("11")){
|
if(args[0].equalsIgnoreCase("11")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_eleven_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_eleven_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eleven!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eleven!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("12")){
|
if(args[0].equalsIgnoreCase("12")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_twelve_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_twelve_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twelve!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twelve!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("13")){
|
if(args[0].equalsIgnoreCase("13")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_thirteen_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_thirteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute thirteen!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute thirteen!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("14")){
|
if(args[0].equalsIgnoreCase("14")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_fourteen_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_fourteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute fourteen!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute fourteen!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("15")){
|
if(args[0].equalsIgnoreCase("15")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_fifteen_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_fifteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute fifteen!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute fifteen!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("16")){
|
if(args[0].equalsIgnoreCase("16")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_sixteen_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_sixteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute sixteen!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute sixteen!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("17")){
|
if(args[0].equalsIgnoreCase("17")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_seventeen_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_seventeen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute seventeen!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute seventeen!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("18")){
|
if(args[0].equalsIgnoreCase("18")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_eighteen_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_eighteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eighteen!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eighteen!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("19")){
|
if(args[0].equalsIgnoreCase("19")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_nineteen_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_nineteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute nineteen!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute nineteen!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("20")){
|
if(args[0].equalsIgnoreCase("20")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_twenty_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_twenty_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twenty!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twenty!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("21")){
|
if(args[0].equalsIgnoreCase("21")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_twentyone_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_twentyone_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentyone!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentyone!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("22")){
|
if(args[0].equalsIgnoreCase("22")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_twentytwo_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_twentytwo_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentytwo!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentytwo!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("23")){
|
if(args[0].equalsIgnoreCase("23")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_twentythree_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_twentythree_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentythree!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentythree!");
|
||||||
}
|
}
|
||||||
if(args[0].equalsIgnoreCase("24")){
|
if(args[0].equalsIgnoreCase("24")){
|
||||||
double x = bloc.getX();
|
double x = ploc.getX();
|
||||||
double y = bloc.getY();
|
double y = ploc.getY();
|
||||||
double z = bloc.getZ();
|
double z = ploc.getZ();
|
||||||
String w = bloc.getWorld().getName();
|
String w = ploc.getWorld().getName();
|
||||||
plugin.config.set("Tribute_twentyfour_spawn", x + "," + y + "," + z + "," + w);
|
plugin.config.set("Tribute_twentyfour_spawn", x + "," + y + "," + z + "," + w);
|
||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentyfour!");
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentyfour!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user