How to check if player in minecart?

Discussion in 'Plugin Development' started by Mr_maderator_UY, Jan 18, 2024.

  1. Offline

    Mr_maderator_UY

    i tryed this, but i think, that it is not right:
    Code:
    if (!player.isOnGround()) {
                            player.teleport(player.getLocation().add(0, 1, 0));
                            player.sendMessage("Nope");
                        }
     
  2. Online

    timtower Administrator Administrator Moderator

Share This Page