ServerKickEvent Reason

Discussion in 'BungeeCord Plugin Development' started by Ad237, Jan 11, 2014.

  1. I see that event.getKickReason() is deprecated. Is there any other way of getting the kick reason or will I have to use this method? Thanks.
     
  2. event.getKickReasonComponent() will return a BaseComponent array which you can convert to a formatted String using BaseComponent.toLegacyText(event.getKickReasonComponent()).
     
    • Agree Agree x 1
    • Useful Useful x 1