Skip to content

Commit d7591d4

Browse files
committed
4.1.8
1 parent e462862 commit d7591d4

4 files changed

Lines changed: 10 additions & 12 deletions

File tree

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SimpAPI v4.1.7
1+
# SimpAPI v4.1.8
22
****
33
SimpAPI, finally a good API that can make coding MC Plugins much easier and less painful.
44
This API includes all of my primary utilities like *Menu Manager*, *Command Manager*, *ColorTranslator*, and more.
@@ -25,7 +25,7 @@ JavaDocs: https://kodysimpson.github.io/SimpAPI/index.html
2525
<dependency>
2626
<groupId>com.github.KodySimpson</groupId>
2727
<artifactId>SimpAPI</artifactId>
28-
<version>4.1.7</version>
28+
<version>4.1.8</version>
2929
</dependency>
3030
```
3131

@@ -48,17 +48,10 @@ repositories {
4848
```
4949
#### Dependency
5050

51-
Groovy:
51+
Groovy/Kotlin:
5252
```groovy
5353
dependencies {
54-
implementation 'com.github.KodySimpson:SimpAPI:4.1.7'
55-
}
56-
```
57-
58-
Kotlin:
59-
```kotlin
60-
dependencies {
61-
implementation("com.github.KodySimpson:SimpAPI:4.1.7")
54+
implementation 'com.github.KodySimpson:SimpAPI:4.1.8'
6255
}
6356
```
6457

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.1.7</version>
9+
<version>4.1.8</version>
1010
<packaging>jar</packaging>
1111

1212
<name>SimpAPI</name>

src/main/java/me/kodysimpson/simpapi/command/CoreCommand.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public boolean execute(@NotNull CommandSender sender, @NotNull String commandLab
5252
}
5353
}
5454

55+
}else{
56+
System.out.println("You must be a player to execute this command");
5557
}
5658

5759
return true;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import me.kodysimpson.simpapi.exceptions.MenuManagerNotSetupException;
55
import org.bukkit.Bukkit;
66
import org.bukkit.Material;
7+
import org.bukkit.entity.Player;
78
import org.bukkit.event.inventory.InventoryClickEvent;
89
import org.bukkit.inventory.Inventory;
910
import org.bukkit.inventory.InventoryHolder;
@@ -20,6 +21,7 @@ public abstract class Menu implements InventoryHolder {
2021

2122
//Protected values that can be accessed in the menus
2223
protected PlayerMenuUtility playerMenuUtility;
24+
protected Player p;
2325
protected Inventory inventory;
2426
protected ItemStack FILLER_GLASS = makeItem(Material.GRAY_STAINED_GLASS_PANE, " ");
2527

@@ -28,6 +30,7 @@ public abstract class Menu implements InventoryHolder {
2830
// what info is to be transferred
2931
public Menu(PlayerMenuUtility playerMenuUtility) {
3032
this.playerMenuUtility = playerMenuUtility;
33+
this.p = playerMenuUtility.getOwner();
3134
}
3235

3336
//let each menu decide their name

0 commit comments

Comments
 (0)