v1.3.1 - Fix for wrong commandMap getter

This commit is contained in:
Frank van der Heijden 2020-06-11 10:02:16 +02:00
parent ea3c5c8c13
commit 59f721ee98
No known key found for this signature in database
GPG key ID: 26DA56488D314D11
2 changed files with 2 additions and 2 deletions

View file

@ -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();
}