@@ -0,0 +1,1945 @@
+package com.teozcommunity.teozfrank.duelme.commands.admin;%0A%0Aimport com.teozcommunity.teozfrank.duelme.main.DuelMe;%0Aimport com.teozcommunity.teozfrank.duelme.util.DuelArena;%0Aimport com.teozcommunity.teozfrank.duelme.util.FileManager;%0Aimport com.teozcommunity.teozfrank.duelme.util.Util;%0Aimport org.bukkit.ChatColor;%0Aimport org.bukkit.Location;%0Aimport org.bukkit.command.CommandSender;%0Aimport org.bukkit.entity.Player;%0A%0A/**%0A * Created by frank on 17/07/2014.%0A */%0Apublic class SetSpawnPoint2Cmd extends DuelAdminCmd %7B%0A%0A    public SetSpawnPoint2Cmd(DuelMe plugin, String mainPerm) %7B%0A        super(plugin, mainPerm);%0A    %7D%0A%0A    @Override%0A    public void run(DuelArena duelArena, CommandSender sender, String subCmd, String%5B%5D args) %7B%0A        if(!(sender instanceof Player))%7B%0A            Util.sendMsg(sender, NO_CONSOLE);%0A            return;%0A        %7D%0A%0A        String duelArenaName = duelArena.getName();%0A        Player player = (Player) sender;%0A%0A        Location pos1 = duelArena.getPos1();%0A        Location pos2 = duelArena.getPos2();%0A        Location playerLocation = player.getLocation();%0A%0A        double x = playerLocation.getBlockX();%0A        double y = playerLocation.getBlockY();%0A        double z = playerLocation.getBlockZ();%0A%0A        if(!Util.isInRegion(playerLocation, pos1, pos2)) %7B%0A            Util.sendMsg(sender, ChatColor.translateAlternateColorCodes('&',%0A                    %22&cYou must be inside the region for arena: &b%22 + duelArenaName + %22 &cto set a spawnpoint!%22));%0A            return;%0A        %7D%0A%0A        playerLocation.setY(y + 2.0);//offset so player does not spawn in the ground if the chunks are not loaded.%0A        duelArena.setSpawnpoint2(playerLocation);%0A        Util.sendMsg(sender, ChatColor.translateAlternateColorCodes('&',%0A                %22&aSpawnpoint2 set to: %22 + %22&a(&b%22 + x + %22&a)(&b%22 + y + %22&a)(&b%22 + z + %22&a)%22%0A                        + ChatColor.GREEN + %22 for arena %22  + ChatColor.AQUA + duelArenaName));%0A    %7D%0A%7D%0A

add set spawnpoint 2, strange git didn't pick this up previously.