Prevented nullpointerexception after player leave