Class RegionsChangedEvent

java.lang.Object
org.bukkit.event.Event
net.raidstone.wgevents.events.RegionsChangedEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class RegionsChangedEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Since:
12/12/2019
Version:
1.0.0
Author:
Weby & Anrza (info@raidstone.net)
  • Constructor Details

    • RegionsChangedEvent

      public RegionsChangedEvent(UUID playerUUID, @NotNull @NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> previous, @NotNull @NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> current)
      This even is fired whenever a region is entered. It may be fired multiple times per tick, if several regions are entered at the same time.
      Parameters:
      playerUUID - The UUID of the player entering the region.
      previous - Set of WorldGuard's ProtectedRegion the player was in before this event
      current - Set of WorldGUard's ProtectedRegion the player is currently in
  • Method Details

    • getHandlerList

      @Contract(pure=true) public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getUUID

      @NotNull public @NotNull UUID getUUID()
    • getPlayer

      @Nullable public @Nullable org.bukkit.entity.Player getPlayer()
    • getCurrentRegionsNames

      @NotNull public @NotNull Set<String> getCurrentRegionsNames()
    • getPreviousRegionsNames

      @NotNull public @NotNull Set<String> getPreviousRegionsNames()
    • getCurrentRegions

      @NotNull public @NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> getCurrentRegions()
    • getPreviousRegions

      @NotNull public @NotNull Set<com.sk89q.worldguard.protection.regions.ProtectedRegion> getPreviousRegions()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable