Interface RegionExecuteCommandEvent

All Superinterfaces:
org.spongepowered.api.event.Cancellable, org.spongepowered.api.event.Event, RegionMessageEvent, RegionWorldEvent

public interface RegionExecuteCommandEvent extends RegionWorldEvent, RegionMessageEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    org.spongepowered.api.entity.living.player.server.ServerPlayer
    Getting a ServerPlayer.
    Get the Region where the event occurred.
    org.spongepowered.api.event.command.ExecuteCommandEvent.Pre
    Getting the Sponge event.
    May be `null` if the original event is not a Sponge event.
    boolean
    Get protect result.
    boolean
    Checks if the player is in a fight with another player.

    Methods inherited from interface org.spongepowered.api.event.Cancellable

    isCancelled, setCancelled

    Methods inherited from interface org.spongepowered.api.event.Event

    cause, context, source

    Methods inherited from interface sawfowl.regionguard.api.events.world.RegionMessageEvent

    getMessage, setMessage

    Methods inherited from interface sawfowl.regionguard.api.events.world.RegionWorldEvent

    getWorld
  • Method Details

    • getRegion

      Region getRegion()
      Get the Region where the event occurred.
      Specified by:
      getRegion in interface RegionWorldEvent
    • getPlayer

      org.spongepowered.api.entity.living.player.server.ServerPlayer getPlayer()
      Getting a ServerPlayer.
      Specified by:
      getPlayer in interface RegionMessageEvent
    • isAllow

      boolean isAllow()
      Get protect result.
    • isPvP

      boolean isPvP()
      Checks if the player is in a fight with another player.
    • getSpongeEvent

      org.spongepowered.api.event.command.ExecuteCommandEvent.Pre getSpongeEvent()
      Description copied from interface: RegionWorldEvent
      Getting the Sponge event.
      May be `null` if the original event is not a Sponge event.
      Specified by:
      getSpongeEvent in interface RegionWorldEvent