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>
|
<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>
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue