1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Set Disconnection-Screen

Discussion in 'Development' started by Akuroma, Jan 4, 2019.

  1. Akuroma

    Akuroma Silverfish

    Messages:
    20
    GitHub:
    Akuroma
    Hey there. Is there any possibility to show players, why they are getting kicked from the server?
    Example:
    "Internal server error" to "An internal server error just occured. Please report it on our Discord-Server."

    I've tried setQuitMessage() in PlayerQuitEvent, as well as in PlayerKickEvent. But it's not working. :/

    Hope you can help me.
     
  2. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    Currently there is no way to do this, unless you use DataPacketSendEvent to intercept DisconnectPacket and change the message. But note that that might break without warning in any future version.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.