diff --git a/vehiclesplus-v3/API.md b/vehiclesplus-v3/API.md index 02aad9e..ba7110b 100644 --- a/vehiclesplus-v3/API.md +++ b/vehiclesplus-v3/API.md @@ -2,7 +2,7 @@ title: API description: Api usage examples published: false -date: 2024-12-28T20:38:34.412Z +date: 2024-12-28T20:40:27.836Z tags: developers editor: markdown dateCreated: 2024-12-28T20:10:42.650Z @@ -17,9 +17,11 @@ This guide explains how to integrate the new and improved VehiclesPlus API (v3) To use the VehiclesPlus API in your plugin, follow these steps: ### Step 1: Add VehiclesPlus to Your Dependencies + Ensure VehiclesPlus is added as a dependency in your project. To always use the latest version, update your dependency configuration as shown below: Maven (`pom.xml`): + ```xml sbdevelopment-repo @@ -34,6 +36,7 @@ Maven (`pom.xml`): ``` Gradle (`build.gradle`): + ```gradle repositories { maven { @@ -45,14 +48,13 @@ dependencies { implementation 'tech.sbdevelopment:vehiclesplus:latest' } ``` -> **Note**: Using `latest` ensures that your project always fetches the most recent release, but it might cause issues if breaking changes are introduced. For more stability, consider specifying a specific version (e.g., `3.0.2`). +> **Note**: Using `latest` ensures that your project always fetches the most recent release, but it might cause issues if breaking changes are introduced. For more stability, consider specifying a specific version (e.g., `3.0.2`). ## Example: Adding a Car to Someone's Garage This example demonstrates how to add a vehicle to any garage: - ```java // Give car to garage public void giveCar(Garage garage, String vehicleType) { @@ -101,4 +103,4 @@ public void giveCar(Player player, String vehicleType) { ## API Documentation -For additional details, examples, and advanced usage, refer to the official [VehiclesPlus API Docs](https://sbdevelopment.tech/vehiclesplus). +For additional details, examples, and advanced usage, refer to the official [VehiclesPlus API Docs](https://sbdevelopment.tech/vehiclesplus). \ No newline at end of file