fix getOnlinePlayers() incompatibility for builds below Bukkit #3096
fixes #367