ScriptCraft

ScriptCraft

14.6k Downloads

Problematically add commands to global scope

CalebBassham opened this issue ยท 0 comments

commented

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().