Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from haq/develop
Browse files Browse the repository at this point in the history
updated readme & spigot target api
  • Loading branch information
haq authored Oct 9, 2021
2 parents 7d8dab7 + 6114ceb commit 66e153d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 38 deletions.
21 changes: 3 additions & 18 deletions bungee/README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions bungee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.16-R0.4-SNAPSHOT</version>
<version>1.16-R0.5-SNAPSHOT</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.16-R0.4-SNAPSHOT</version>
<version>1.16-R0.5-SNAPSHOT</version>
<type>javadoc</type>
<scope>provided</scope>
</dependency>
Expand Down
20 changes: 3 additions & 17 deletions spigot/README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion spigot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.16.4-R0.1-SNAPSHOT</version>
<version>1.17.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit 66e153d

Please sign in to comment.