Skip to content

VehicleHandler

pixelrider2000 edited this page Sep 15, 2021 · 6 revisions
  • putPlayerInDriveable(String playerUUID, String vehicleUUID)

    Explanation: Puts a given player in the driver seat of a vehicle

    • playerUUID : UUID of player
    • vehicleUUID : UUID of vehicle to put the player in
  • spawnDriveable(String worldName, int cx, int cy, int cz, String type, int sx, int sy, int sz, float rotation)

    Explanation: It will check if there is a chest at the given coordinates. If there is it will take the first item in it that isn't null an try to spawn it (make sure the first item is a vehicle/plane)

    • worldName : name of the world to spawn the driveable in
    • cx : x coordinate of chest
    • cy : y coordinate of chest
    • cz : z coordinate of chest
    • type : (either "vehicle" or "plane")
    • sx : x coordinate of where to spawn the driveable
    • sy : y coordinate of where to spawn the driveable
    • sz : z coordinate of where to spawn the driveable
    • rotation : rotation of the spawned driveable

Clone this wiki locally