API
Please keep in mind that this wiki only shows a limited selection of methods, functions and possibilites.
For further questions regarding the development of addons, methods, or just general questions about what is possible, ask us on our discord server. Do read the entire page here though.
Using the API
Step 1:
Create a /libs
folder in your project, and drag and drop the Vehicles jar into the folder.
Step 2:
Add the following to your pom.xml
if you are using Maven:
Depending on how you called your Vehicles.jar
, you may also need to change that part in the SystemPath
.
Step 3:
You can now use the Vehicles API. Don't forget to add Vehicles as a dependency to your plugin.yml
The Vehicle
object is a custom one. It is not the same as the org.bukkit.entity
Vehicle. Please make sure to import the correct Vehicle. eg.:
Limitations of the API
Available Events
General API Methods
The following code selections are based off of the VehiclesMain instance:
The following code selections are generalised and should give insight on what info you can get/set from Vehicles. Please keep in mind, that you call these methods with a Vehicle object.
Code Examples
Last updated