Sending the End Credits to a user

Discussion in 'Spigot Plugin Development' started by Xsm0deus, Jul 15, 2018.

  1. Is this possible and how would it be done? Also can you modify the text on the end credits or just send them.
     
  2. ScarabCoder

    ScarabCoder Retired Resource Staff
    Retired

    You can only send them. The text is decided by the client's set language, just like item names, and don't exist on the server.

    The packet to do so is here: http://wiki.vg/Protocol#Change_Game_State

    EDIT: Not entirely sure what will happen at the end. The client will probably attempt a respawn of some sort, and since the server will only accept it at a valid moment (supposedly, otherwise the client could send the respawn packet whenever) you will probably need to handle that in some way. Best case scenario, the credits scene just ends and they go back to their normal gameplay.

    Also, you can change the text via a resource pack.