CalebBassham opened this issue 6 years ago ยท 0 comments
I was reading the comments of commando and noticed that you wanted to know if there is a better way than listening for a PlayerCommandPreprocessEvent. There is! You can use reflection to get the CommandMap from Bukkit.getServer().
Bukkit.getServer()