Potential fix for NullPointerException error being thrown (at least sometimes?) onPlayerJoin - not yet tested