1.18.2
This commit is contained in:
parent
033a8a629b
commit
4a6eae6a8e
4 changed files with 9 additions and 4 deletions
2
pom.xml
2
pom.xml
|
|
@ -37,7 +37,7 @@
|
|||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.21.6-R0.1-SNAPSHOT</version>
|
||||
<version>1.21.7-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
|||
|
|
@ -398,7 +398,7 @@ public class MainCommand implements CommandExecutor, TabCompleter {
|
|||
commands.add("verify");commands.add("migrate");commands.add("open");
|
||||
}
|
||||
for(String c : commands) {
|
||||
if(args[0].isEmpty() || c.startsWith(args[0].toLowerCase())) {
|
||||
if(args[0].isEmpty() || c.toLowerCase().startsWith(args[0].toLowerCase())) {
|
||||
completions.add(c);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -139,10 +139,15 @@ public class PlayerKits2 extends JavaPlugin {
|
|||
serverVersion = ServerVersion.v1_21_R4;
|
||||
break;
|
||||
case "1.21.6":
|
||||
case "1.21.7":
|
||||
serverVersion = ServerVersion.v1_21_R5;
|
||||
break;
|
||||
default:
|
||||
serverVersion = ServerVersion.valueOf(packageName.replace("org.bukkit.craftbukkit.", ""));
|
||||
try{
|
||||
serverVersion = ServerVersion.valueOf(packageName.replace("org.bukkit.craftbukkit.", ""));
|
||||
}catch(Exception e){
|
||||
serverVersion = ServerVersion.v1_21_R5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
main: pk.ajneb97.PlayerKits2
|
||||
version: 1.18.1
|
||||
version: 1.18.2
|
||||
name: PlayerKits2
|
||||
api-version: 1.13
|
||||
softdepend: [Vault,PlaceholderAPI]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue