29.12.2015, 20:41
@Su37Erich: You need to have an instance of PlayerMapIcon which you can get by calling player.getMapIcon();
If you want to show an Map Icon for every player, you should iterate through every player using
or register an PlayerConnectEvent and call your showMapIcons(player) method from there.
If you want to show an Map Icon for every player, you should iterate through every player using
PHP Code:
Player.getHumans().forEach(player -> {
player.getMapIcon().create(...);
});