Skip to content

Commit cec5e32

Browse files
committed
4.1.0
1 parent 29f2280 commit cec5e32

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

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

1212
<name>SimpAPI</name>
1313

1414
<properties>
15-
<java.version>1.8</java.version>
15+
<java.version>16</java.version>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1717
</properties>
1818

@@ -80,7 +80,7 @@
8080
<dependency>
8181
<groupId>org.spigotmc</groupId>
8282
<artifactId>spigot-api</artifactId>
83-
<version>1.16.5-R0.1-SNAPSHOT</version>
83+
<version>1.17-R0.1-SNAPSHOT</version>
8484
<scope>provided</scope>
8585
</dependency>
8686
<dependency>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public boolean execute(@NotNull CommandSender sender, @NotNull String commandLab
3636

3737
if (args.length > 0){
3838
for (int i = 0; i < getSubCommands().size(); i++){
39-
if (args[0].equalsIgnoreCase(getSubCommands().get(i).getName())){
39+
if (args[0].equalsIgnoreCase(getSubCommands().get(i).getName()) || (getSubCommands().get(i).getAliases() != null && getSubCommands().get(i).getAliases().contains(args[0]))){
4040
getSubCommands().get(i).perform(p, args);
4141
}
4242
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ public abstract class SubCommand {
1515
*/
1616
public abstract String getName();
1717

18+
/**
19+
* @return The aliases that can be used for this command. Can be null
20+
*/
21+
public abstract List<String> getAliases();
22+
1823
/**
1924
* @return A description of what the subcommand does to be displayed
2025
*/

0 commit comments

Comments
 (0)