This commit is contained in:
Ajneb97 2025-07-02 17:00:36 -04:00
parent 033a8a629b
commit 4a6eae6a8e
4 changed files with 9 additions and 4 deletions

View file

@ -37,7 +37,7 @@
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
<version>1.21.6-R0.1-SNAPSHOT</version> <version>1.21.7-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

View file

@ -398,7 +398,7 @@ public class MainCommand implements CommandExecutor, TabCompleter {
commands.add("verify");commands.add("migrate");commands.add("open"); commands.add("verify");commands.add("migrate");commands.add("open");
} }
for(String c : commands) { 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); completions.add(c);
} }
} }

View file

@ -139,10 +139,15 @@ public class PlayerKits2 extends JavaPlugin {
serverVersion = ServerVersion.v1_21_R4; serverVersion = ServerVersion.v1_21_R4;
break; break;
case "1.21.6": case "1.21.6":
case "1.21.7":
serverVersion = ServerVersion.v1_21_R5; serverVersion = ServerVersion.v1_21_R5;
break; break;
default: default:
try{
serverVersion = ServerVersion.valueOf(packageName.replace("org.bukkit.craftbukkit.", "")); serverVersion = ServerVersion.valueOf(packageName.replace("org.bukkit.craftbukkit.", ""));
}catch(Exception e){
serverVersion = ServerVersion.v1_21_R5;
}
} }
} }

View file

@ -1,5 +1,5 @@
main: pk.ajneb97.PlayerKits2 main: pk.ajneb97.PlayerKits2
version: 1.18.1 version: 1.18.2
name: PlayerKits2 name: PlayerKits2
api-version: 1.13 api-version: 1.13
softdepend: [Vault,PlaceholderAPI] softdepend: [Vault,PlaceholderAPI]