[SPIGOT-3055] Boat PlayerMoveEvent canceln, bug or mistake ? Created: 09/Feb/17 Updated: 10/Feb/17 Resolved: 09/Feb/17 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Jan U | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | 1.11.2, Bug, Event, Move, boats, mistake | ||
| Description |
|
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); } } |
| Comments |
| Comment by Jan U [ 10/Feb/17 ] |
|
What I should have mentioned is that it is a race game and would like at the start that the players can not move |
| Comment by md_5 [ 09/Feb/17 ] |
|
Unfortunately this seems to be working as intended to me. |