Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3055

Boat PlayerMoveEvent canceln, bug or mistake ?

XMLWordPrintable

      I want to make a plugin that Players can't drive in a Vehicle but they can sit in the Vehicle

      Video https://youtu.be/0eXJmw5c0UU

      Code:

      @EventHandler
      public void onMove(PlayerMoveEvent e)
      {
      	if(e.getPlayer().isInsideVehicle())
      	{
      		e.setCancelled(true);
      	}
      }
      

            Unassigned Unassigned
            MatArtz Jan U
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: