Use File.separator

This commit is contained in:
Sam 2017-01-21 14:46:18 +00:00
parent 0827ea2da0
commit c7c7b4448f
2 changed files with 6 additions and 1 deletions

View File

@ -109,6 +109,11 @@ public class SpawnModule extends MiniPlugin
});
}
public void teleportToSpawn(Player player)
{
player.teleport(_spawn);
}
public boolean isSuitable(Block block)
{
Block up = block.getRelative(BlockFace.UP);

View File

@ -40,7 +40,7 @@ import mineplex.core.common.util.UtilShapes;
public class SupplyDrop
{
private static final String SCHEMATIC_PATH = "../../update/files/Helicopter.schematic";
private static final String SCHEMATIC_PATH = ".." + File.separator + ".." + File.separator + "update" + File.separator + "files" + File.separator + "Helicopter.schematic";
private static final int BLADE_LENGTH = 7;
private Location _destination;