Skip to content

Commit b5da198

Browse files
committed
[Release] 1.0.3
2 parents a9c9016 + da36a4f commit b5da198

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Maven:
3434
<dependency>
3535
<groupId>com.github.Josscoder</groupId>
3636
<artifactId>JNPC</artifactId>
37-
<version>1.0.2-powernukkitx</version>
37+
<version>1.0.3-powernukkitx</version>
3838
</dependency>
3939
```
4040

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>josscoder.jnpc</groupId>
88
<artifactId>JNPC</artifactId>
9-
<version>1.0.2-powernukkitx</version>
9+
<version>1.0.3-powernukkitx</version>
1010

1111
<properties>
1212
<maven.compiler.source>17</maven.compiler.source>

src/main/java/josscoder/jnpc/JNPC.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ public static void init(PluginBase pluginBase) {
2323
* @param npcListener the listener to handle NPCS actions
2424
*/
2525
public static void init(PluginBase pluginBase, NPCListener npcListener) {
26-
NPCFactory.make();
26+
init();
2727
pluginBase.getServer().getPluginManager().registerEvents(npcListener, pluginBase);
2828
}
29+
30+
/**
31+
* Action to start the library without default listener
32+
*/
33+
public static void init() {
34+
NPCFactory.make();
35+
}
2936
}

0 commit comments

Comments
 (0)