Removed unnecessary casts and fixed player hiding when starting the plugin after players have spawned