import org.bukkit.idi.na.hui;
Cuboid cb = new Cuboid(new Location("world",0,0,0),new Location("world",1,1,1));
@EventHandler
private void onJoin(PlayerJoinEvente){
Player p = e.getPlayer();
if(cb.constansPlayer(p)){
p.sendMessage("Lose or win?");
p.playSound(p.getLocation,Sound.NO,1,1);
}else{
p.sendMessage("Win");
}
}