v1.3.1 - Fix for wrong commandMap getter
This commit is contained in:
parent
ea3c5c8c13
commit
59f721ee98
2 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ plugins {
|
||||||
|
|
||||||
String packagePath = 'net.frankheijden.serverutils'
|
String packagePath = 'net.frankheijden.serverutils'
|
||||||
group = packagePath
|
group = packagePath
|
||||||
version '1.3.0'
|
version '1.3.1'
|
||||||
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ public class ServerUtils extends JavaPlugin implements CommandExecutor {
|
||||||
commandManager.getCommandCompletions().registerAsyncCompletion("supportedConfigs", context -> CommandServerUtils.getSupportedConfigs());
|
commandManager.getCommandCompletions().registerAsyncCompletion("supportedConfigs", context -> CommandServerUtils.getSupportedConfigs());
|
||||||
commandManager.getCommandCompletions().registerAsyncCompletion("commands", context -> {
|
commandManager.getCommandCompletions().registerAsyncCompletion("commands", context -> {
|
||||||
try {
|
try {
|
||||||
return RCommandMap.getKnownCommands((SimpleCommandMap) Bukkit.getCommandMap()).keySet();
|
return RCommandMap.getKnownCommands(RCraftServer.getCommandMap()).keySet();
|
||||||
} catch (IllegalAccessException | InvocationTargetException ex) {
|
} catch (IllegalAccessException | InvocationTargetException ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue