From db894a7c3ead0331d56f72164578d9c230281f7f Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Wed, 21 Feb 2018 18:53:19 +0200 Subject: [PATCH] Updated APIv4 (markdown) --- APIv4.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/APIv4.md b/APIv4.md index 2c20e4d..bcf305b 100644 --- a/APIv4.md +++ b/APIv4.md @@ -3,16 +3,6 @@ This page is about the API that is available in **version 4.1.5** and above, mainly how to register data from your plugin to be displayed on the website. -If you're using Maven, you can use this as the dependency information. -``` - - com.djrapitops - Plan - 4.2.0-SNAPSHOT - provided - -``` - API can be called on Bukkit & Bungee. **The API PluginData functionality is available, but limited on Bungee** @@ -27,9 +17,19 @@ API can be called on Bukkit & Bungee. ## Accessing API Install the Plan.jar as a local dependency if you're using Maven. Add soft-depend or depend in the plugin.yml +Maven dependency information. +``` + + com.djrapitops + Plan + 4.2.0-SNAPSHOT + provided + +``` +Getting PlanAPI instance ``` try { - API planAPI = Plan.getPlanAPI(); + PlanAPI planAPI = PlanAPI.getInstance(); } catch (IllegalStateException e) { // Plan has not enabled properly } catch (NoClassDefFoundError e) {