#Forcing a resource pack with a kick message?

1 messages · Page 1 of 1 (latest)

plain pike
silent sonnet
#
@EventHandler
public void onResourcepackStatusEvent(PlayerResourcePackStatusEvent event){
  if(event.getStatus() == PlayerResourcePackStatusEvent.Status.DECLINED)
  event.getPlayer().kickPlayer(" You did not accept the resourcepack request.");
}```
plain pike
#

As I said, I’m already listening to that and when a player gets kicked the message isn’t shown as the player hasn’t fully loaded in yet.

silent sonnet
#

is a message shown? or just a default one?

plain pike
#

That’s the issue, I get an IOException message

silent sonnet
#

can you show the stacktrace?

plain pike
#

There is no error. As I mentioned in my original post, the player is kicked with the IOException message instead of the message I am trying to send them when kicking them.