Commands
- /QAV give <vehicle> <player>: Gives a player a vehicle as an item
- /QAV spawnVehicle <vehicle>: Spawns a vehicle instance at the player's location
- /QAV removeNearbyVehicles <radius>: Removes all spawned vehicle instances within a radius of the player.
- /QAV shop: Opens the shop GUI.
- /QAV callback : Calls back all of the vehicles the player owns.
- /QAV callbackAll: Calls back all vehicles on the server.
- /QAV debug_removeAllBuggedVehicles : Use to remove all bugged vehicles near the player.
- /QAV garage : Opens the garage (Only if "enable_UnlockableVehicles" is enable in the config.)
Permissions
- qualityarmoryvehicles.* : Gives access to all permissions.
- qualityarmoryvehicles.admin : Gives access to all admin permissions,.
- qualityarmoryvehicles.give : Allows player to use /qav give
- qualityarmoryvehicles.spawn :Allows player to use /qav spawnVehicle
- qualityarmoryvehicles.setaspassager :Allows player to use /qav setaspassager
- qualityarmoryvehicles.removenearbyvehicles :Allows player to use /qav removenearbyvehicles
- qualityarmoryvehicles.default: Gives access to all default commands. Added by default.
- qualityarmoryvehicles.craft : (Planned) will allow players to craft vehicles. Added by default.
- qualityarmoryvehicles.shop: Allows players to buy vehicles. Added by default.
- qualityarmoryvehicles.use : Allows players to interact with vehicles. Added by default.
- qualityarmoryvehicles.vehiclelimit.X : Limits the amount of vehicles a player can have spawned at one time (by default, all players are allowed 1)
- qualityarmoryvehicles.unlimitedvehicles : Bypasses limit check
- qualityarmoryvehicles.callback : Allowes players to call back all of their vehicles (either storing them in the player's garage or adding it back to the player's inventory)
- qualityarmoryvehicles.callbackAll : Calls back all vehicles on the server.
- qualityarmoryvehicles.candrive.XXX : If "enable_RequirePermsToDriveType" set to true, only players with that permission can drive the vehicle called "XXX" (Replace XXX with the vehicle's name).
- qualityarmoryvehicles.overrideWhitelistCommand : Lets a user set the whitelist for a vehicle using commands.
- qualityarmoryvehicles.usevehiclegui : Allows users to see a vehicle's GUI menu. Added by default.
- qualityarmoryvehicles.overrideWhitelist : Lets a user ride a vehicle, even if they are not in the whitelist for that vehicle.
Dependencies
ProtocolLib (Required) for handling the inputs for the player controls.
Quality Armory (Recommended/Not-required) for the models and textures, and system for storing and sorting these models Note however, if you do not want the guns from QA, QAV will still work without it.
Developer API
QualityArmoryVehicles.class:
- QualityArmoryVehicles.getVehicleByName() returns the abstractvehicle instance with the name provided.
- QualityArmoryVehicles.getAllVehicles() returns all of the vehicles on the server
- QualityArmoryVehicles.registerAndLoadNewVehicle() creates a new vehicle type.
- QualityArmoryVehicles.spawnVehicle() spawns a vehicle at a given location.
- QualityArmoryVehicles.getVehicleEntity() returns the VehicleEntity, given an armorstand that is the "driver seat"
- QualityArmoryVehicles.addPlayerToCar() adds a player either as a driver or a passager to a vehicle.
- QualityArmoryVehicles.getOwnedVehicles() returns all of the vehicles a player owns.
- QualityArmoryVehicles.teleportVehicle() telports a vehicle and all its passangers to a new location.
- QualityArmoryVehicles.getVehiclePlayerIsLookingAt(); Returns the vehicle the player is looking at. Useful for detecting which vehicle a player is interacting with.
VehicleSpawnEvent:
- Called when a vehicle is created
VehicleDamageEvent:
- Called when a vehicle was damaged.
VehicleDestroyEvent:
- Called when a vehicle is destroyed
VehicleTurnEvent:
- Called when a vehicle turns left or right
VehicleChangeSpeedEvent:
- Called when a vehicle changes speed by the players request (slowing down or speeding up)
PlayerEnterQAVehicleEvent:
- Called when a player enters a seat, either being the driver seat or a passager seat
PlayerExitQAVehicleEvent:
- Called when a player exits a vehicle
Terms Of Service
By purchasing QualityArmoryVehicles, you agree to the following Terms of Service:
[LIST=1]You have authorization to use the debt/credit card and/or paypal accountYou will not chargeback, dispute, or reverse any paymentsYou will not decompile or modify QualityArmoryVehiclesYou will not redistribute QualityArmoryVehicles or any of its contentsI may revoke your access to QualityArmoryVehicles if you violate any of the terms aboveI reserve the right to change these terms at any time and you agree to abide by the most recent version of the termsYou agree to everything listed above and below
[/LIST]
NO REFUNDS WILL BE GRANTED