Fixed potential NPE if a newly created player is not online
Removed unused imports