Class DiscoverZoneEvent
java.lang.Object
fr.hytale.loader.event.types.ecs.DiscoverZoneEvent
- All Implemented Interfaces:
com.hypixel.hytale.event.IBaseEvent<Void>, com.hypixel.hytale.event.IEvent<Void>
Called when a player discovers a new zone.
This event is fired when a player enters a previously undiscovered zone or area in the game world. This can be used to trigger custom messages, rewards, or other zone-discovery mechanics. The event can be cancelled to prevent the discovery notification.
- Since:
- 1.0.1
- Version:
- 1.0.4
- Author:
- HytaleLoader
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoverZoneEvent(com.hypixel.hytale.server.core.event.events.ecs.DiscoverZoneEvent.Display originalEvent, Player player) Constructs a new DiscoverZoneEvent. -
Method Summary
Modifier and TypeMethodDescriptioncom.hypixel.hytale.server.core.universe.world.WorldMapTracker.ZoneDiscoveryInfoGets the zone discovery information.Gets the player who discovered the zone.booleanChecks if this event has been cancelled.voidsetCancelled(boolean cancelled) Sets the cancelled state of this event.
-
Constructor Details
-
DiscoverZoneEvent
public DiscoverZoneEvent(com.hypixel.hytale.server.core.event.events.ecs.DiscoverZoneEvent.Display originalEvent, Player player) Constructs a new DiscoverZoneEvent.- Parameters:
originalEvent- the original Hytale ECS eventplayer- the player who discovered the zone
-
-
Method Details
-
getDiscoveryInfo
public com.hypixel.hytale.server.core.universe.world.WorldMapTracker.ZoneDiscoveryInfo getDiscoveryInfo()Gets the zone discovery information.- Returns:
- the discovery info containing zone details
-
isCancelled
public boolean isCancelled()Checks if this event has been cancelled.- Returns:
- true if cancelled, false otherwise
-
setCancelled
public void setCancelled(boolean cancelled) Sets the cancelled state of this event.- Parameters:
cancelled- true to cancel, false to allow
-
getPlayer
-