Skip to content

Commit 42029c8

Browse files
committed
made it so you have to pass the plugin instance when opening a menu so you can obtain it later on
1 parent f8163f1 commit 42029c8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pom.xml

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

77
<groupId>me.kodysimpson</groupId>
88
<artifactId>SimpAPI</artifactId>
9-
<version>4.5.0</version>
9+
<version>4.5.1</version>
1010
<packaging>jar</packaging>
1111

1212
<name>SimpAPI</name>

src/main/java/me/kodysimpson/simpapi/menu/PaginatedMenu.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import org.bukkit.ChatColor;
44
import org.bukkit.Material;
55
import org.bukkit.inventory.ItemStack;
6+
import org.bukkit.plugin.Plugin;
67
import org.jetbrains.annotations.Nullable;
78

89
import java.util.HashMap;
@@ -22,8 +23,8 @@ public abstract class PaginatedMenu extends Menu {
2223
//that the loop is on
2324
protected int index = 0;
2425

25-
public PaginatedMenu(PlayerMenuUtility playerMenuUtility) {
26-
super(playerMenuUtility);
26+
public PaginatedMenu(Plugin plugin, PlayerMenuUtility playerMenuUtility) {
27+
super(plugin, playerMenuUtility);
2728
}
2829

2930
/**

0 commit comments

Comments
 (0)