-
Method Summary
org.spongepowered.api.entity.living.player.server.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
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
-
Method Details
-
-
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()
Getting the Sponge event.
May be `null` if the original event is not a Sponge event.
- Specified by:
getSpongeEvent
in interface RegionWorldEvent