#Forcing a resource pack with a kick message?
1 messages · Page 1 of 1 (latest)
@EventHandler
public void onResourcepackStatusEvent(PlayerResourcePackStatusEvent event){
if(event.getStatus() == PlayerResourcePackStatusEvent.Status.DECLINED)
event.getPlayer().kickPlayer(" You did not accept the resourcepack request.");
}```
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.
is a message shown? or just a default one?
That’s the issue, I get an IOException message
can you show the stacktrace?
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.