Skip to content
This repository was archived by the owner on Jul 24, 2021. It is now read-only.

Commit 3c11b05

Browse files
committed
✨ The number of steps can now be retrieve
1 parent 47a9342 commit 3c11b05

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/fr/bakaaless/api/inventory/Scheduler.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,17 @@ public void forceStop(final JavaPlugin plugin) {
8383
synchronized void add(final InventoryAPI inv) {
8484
this.inventories.add(inv);
8585
if (this.inventories.size() == 1)
86-
start();
86+
this.start();
8787
}
8888

8989
synchronized void remove(final InventoryAPI inv) {
9090
this.inventories.remove(inv);
9191
if (this.inventories.size() == 0)
92-
stop();
92+
this.stop();
93+
}
94+
95+
synchronized int getStep() {
96+
return this.step;
9397
}
9498

9599
}

0 commit comments

Comments
 (0)