public static void Jumper(Player p) { BukkitTask t = new BukkitRunnable() { @Override public void run() { Block b = p.getServer().getWorld("Mafanation").getBlockAt(65, 37, 133); Block m = p.getServer().getWorld("Mafanation").getBlockAt(104, 2, 165); if (b != null) { Jumper z = new Jumper(b.getLocation()); WorldServer world2 = ((CraftWorld) b.getLocation().getWorld()).getHandle(); world2.addEntity(z); Jumper t = new Jumper(m.getLocation()); WorldServer world = ((CraftWorld) m.getLocation().getWorld()).getHandle(); world.addEntity(z); } }