Closed nlaha closed 3 years ago
seems the maps are loading in onMap before the config has had a chance to populate the "maps" map.
It also seems like onMap isn't being fired for all maps, if at all in some cases.
Seems like we might not be able to use the onMap event. See the following example: https://github.com/zDevelopers/ImageOnMap/blob/indev/src/main/java/fr/moribus/imageonmap/image/MapInitEvent.java
fixed
not fixed
Temporary fix implemented, uses on player move so it's not ideal.
Permanent fix by finding each registered map on startup and changing it.
Problem is that this uses the depreciated Server.getMap(int)
method. In the future, this might be replaced if a better system can be found.
The new map system doesn't load configs properly.