added method to clean up statics
fixed nullpointer because a offline player just don't have a name.