From 6114cebe80767e55428f27f1300091b92c29d981 Mon Sep 17 00:00:00 2001 From: Affan Haq <19542414+haq@users.noreply.github.com> Date: Sat, 9 Oct 2021 18:43:07 -0400 Subject: [PATCH] updated readme & spigot target api --- bungee/README.md | 21 +++------------------ bungee/pom.xml | 4 ++-- spigot/README.md | 20 +++----------------- spigot/pom.xml | 2 +- 4 files changed, 9 insertions(+), 38 deletions(-) diff --git a/bungee/README.md b/bungee/README.md index f973ad9..464f353 100644 --- a/bungee/README.md +++ b/bungee/README.md @@ -1,8 +1,10 @@ -## Declaration +## Usage ```java +import me.affanhaq.keeper.Keeper; import me.affanhaq.keeper.data.ConfigFile; import me.affanhaq.keeper.data.ConfigValue; +import net.md_5.bungee.api.plugin.Plugin; /** * Every object that contains fields that you want to be load must be annotated. @@ -14,23 +16,6 @@ public class TestPlugin extends Plugin { * Every field that you want to load must be annotated. */ @ConfigValue("messages.join") - private String join = "Default join message"; - -} -``` - -## Usage - -```java -import me.affanhaq.keeper.Keeper; -import me.affanhaq.keeper.data.ConfigFile; -import me.affanhaq.keeper.data.ConfigValue; -import net.md_5.bungee.api.plugin.Plugin; - -@ConfigFile("config.yml") -public class TestPlugin extends Plugin { - - @ConfigValue("messages.join") private String joinMessage = "Default join message"; @ConfigValue("messages.quit") diff --git a/bungee/pom.xml b/bungee/pom.xml index e77985e..0eb047c 100644 --- a/bungee/pom.xml +++ b/bungee/pom.xml @@ -22,14 +22,14 @@ net.md-5 bungeecord-api - 1.16-R0.4-SNAPSHOT + 1.16-R0.5-SNAPSHOT jar provided net.md-5 bungeecord-api - 1.16-R0.4-SNAPSHOT + 1.16-R0.5-SNAPSHOT javadoc provided diff --git a/spigot/README.md b/spigot/README.md index ab83859..5147ef9 100644 --- a/spigot/README.md +++ b/spigot/README.md @@ -1,8 +1,10 @@ -## Declaration +## Usage ```java +import me.affanhaq.keeper.Keeper; import me.affanhaq.keeper.data.ConfigFile; import me.affanhaq.keeper.data.ConfigValue; +import org.bukkit.plugin.java.JavaPlugin; /** * Every object that contains fields that you want to be load must be annotated. @@ -14,22 +16,6 @@ public class TestPlugin extends JavaPlugin { * Every field that you want to load must be annotated. */ @ConfigValue("messages.join") - private String join = "Default join message"; - -} -``` - -## Usage - -```java -import me.affanhaq.keeper.Keeper; -import me.affanhaq.keeper.data.ConfigFile; -import me.affanhaq.keeper.data.ConfigValue; - -@ConfigFile("config.yml") -public class TestPlugin extends JavaPlugin { - - @ConfigValue("messages.join") private String joinMessage = "Default join message"; @ConfigValue("messages.quit") diff --git a/spigot/pom.xml b/spigot/pom.xml index a3920ad..18b3619 100644 --- a/spigot/pom.xml +++ b/spigot/pom.xml @@ -22,7 +22,7 @@ org.spigotmc spigot-api - 1.16.4-R0.1-SNAPSHOT + 1.17.1-R0.1-SNAPSHOT provided