Class WMapAddon
java.lang.Object
com.olziedev.playerwarps.api.expansion.PluginExpansion
com.olziedev.playerwarps.api.expansion.Expansion
com.olziedev.playerwarps.api.expansion.WMapAddon
Represents a warp map addon that can allow control markers on web-based maps.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
This variable determines if the expansion hasn't been loaded before.Fields inherited from class com.olziedev.playerwarps.api.expansion.PluginExpansion
config, expansionConfig, file, integrated, plugin, registry, version
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Adds the marker to the map when either the map is a new install or a warp has been created.abstract void
Adds all the new warps to the map.abstract void
removeMarker
(Warp warp) Removes the marker from the map when the warp is removed.abstract void
updateMarker
(Warp warp) Updates the marker when a warps' data has been changed.
-
Field Details
-
newSetup
public boolean newSetupThis variable determines if the expansion hasn't been loaded before. This variable should be checkedaddNewWarps()
and then should be set to false when you've added the marker, should also be set to true in the#load()
method if the expansion hasn't been loaded before.
-
-
Constructor Details
-
WMapAddon
public WMapAddon()
-
-
Method Details
-
addMarker
Adds the marker to the map when either the map is a new install or a warp has been created.- Parameters:
warp
- The warp that will be added to the map.
-
removeMarker
Removes the marker from the map when the warp is removed.- Parameters:
warp
- The warp that will be removed from the map.
-
updateMarker
Updates the marker when a warps' data has been changed.- Parameters:
warp
- The warp that needs to be updated on the map
-
addNewWarps
public abstract void addNewWarps()Adds all the new warps to the map.
-