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
|
|
@ -53,7 +53,7 @@ public class ServerUtils extends JavaPlugin implements CommandExecutor {
|
|||
commandManager.getCommandCompletions().registerAsyncCompletion("supportedConfigs", context -> CommandServerUtils.getSupportedConfigs());
|
||||
commandManager.getCommandCompletions().registerAsyncCompletion("commands", context -> {
|
||||
try {
|
||||
return RCommandMap.getKnownCommands((SimpleCommandMap) Bukkit.getCommandMap()).keySet();
|
||||
return RCommandMap.getKnownCommands(RCraftServer.getCommandMap()).keySet();
|
||||
} catch (IllegalAccessException | InvocationTargetException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue