File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
src/main/java/josscoder/jnpc Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments