I tried to fix end of game death and world unloading

Hi, this is my first time I ever tried editing a program... at the end of the game, the players will be kicked instead of getting killed... this can work well with the "always spawn" plugin