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>

public class DiscoverZoneEvent extends Object implements 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

    Constructors
    Constructor
    Description
    DiscoverZoneEvent(com.hypixel.hytale.server.core.event.events.ecs.DiscoverZoneEvent.Display originalEvent, Player player)
    Constructs a new DiscoverZoneEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.hypixel.hytale.server.core.universe.world.WorldMapTracker.ZoneDiscoveryInfo
    Gets the zone discovery information.
    Gets the player who discovered the zone.
    boolean
    Checks if this event has been cancelled.
    void
    setCancelled(boolean cancelled)
    Sets the cancelled state of this event.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 event
      player - 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

      public Player getPlayer()
      Gets the player who discovered the zone.
      Returns:
      the player