You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@DevJoey A work around we use is to have a listener which removes the command from the list during PlayerCommandSendEvent, this isn't exactly ideal behavior but it works:
@EventHandler
@Suppress("Unused")
funonPlayerCommandSendEvent(event:PlayerCommandSendEvent) {
event.commands.removeIf { it =="commandname" }
}
Note: This is Kotlin, not Java, but you get the idea.
@DevJoey A work around we use is to have a listener which removes the command from the list during PlayerCommandSendEvent, this isn't exactly ideal behavior but it works:
@EventHandler
@Suppress("Unused")
funonPlayerCommandSendEvent(event:PlayerCommandSendEvent) {
event.commands.removeIf { it =="commandname" }
}
Note: This is Kotlin, not Java, but you get the idea.
Ye thank you... I have already implemented a method in my chat system that does exactly this! But is as you say not ideal and it would be nice if this gets fixed!
No description provided.
The text was updated successfully, but these errors were encountered: