Skip to content

Commit

Permalink
1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
efekos committed May 28, 2023
1 parent b5166e2 commit 7abbf2c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![](https://jitpack.io/v/efe124/Simpler.svg)](https://jitpack.io/#efe124/Simpler)
[![License: ISC](https://img.shields.io/badge/License-ISC-yellow.svg)](https://opensource.org/licenses/MIT)
![version](https://img.shields.io/badge/version-1.0.6-blue)
![version](https://img.shields.io/badge/version-1.0.9-blue)
# Simpler

## Installation
Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>com.github.efe124</groupId>
<artifactId>Simpler</artifactId>
<version>1.0.4</version>
<version>1.0.9</version>
</dependency>
````

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.efekos</groupId>
<artifactId>Simpler</artifactId>
<version>1.0.6</version>
<version>1.0.9</version>
<packaging>jar</packaging>

<name>Simpler</name>
Expand Down
8 changes: 1 addition & 7 deletions src/main/java/me/efekos/simpler/Simpler.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,8 @@
import java.lang.reflect.InvocationTargetException;

public final class Simpler extends JavaPlugin {
private static Simpler plugin;

public static Simpler getPlugin() {
return plugin;
}

@Override
public void onEnable() {
plugin = this;
}

@Override
Expand All @@ -38,6 +31,7 @@ public void onDisable() {
* @throws InvalidAnnotationException If the annotations of a class is missing or wrong.
* @throws InvalidClassException If one of the classes annotated with @Register is wrong.
*/
@Deprecated
private static void setup(JavaPlugin plugin) throws InvalidAnnotationException,InvalidClassException {
Class<?>[] registers = Utils.getAllClassesAnnotatedWith(Register.class);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/me/efekos/simpler/items/ItemManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class ItemManager {

public static void setPlugin(JavaPlugin plugin) {
ItemManager.plugin = plugin;
itemTypeKey = new NamespacedKey(Simpler.getPlugin(),"item_id");
itemTypeKey = new NamespacedKey(plugin,"item_id");
}

public static void registerItem(String name, Class<? extends CustomItem> itemClass){
Expand Down

0 comments on commit 7abbf2c

Please sign in to comment.