Package dev.plex.event
Class PunishedPlayerEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
dev.plex.event.PunishedPlayerEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
- Direct Known Subclasses:
PunishedPlayerFreezeEvent
,PunishedPlayerLockupEvent
,PunishedPlayerMuteEvent
public abstract class PunishedPlayerEvent
extends org.bukkit.event.player.PlayerEvent
implements org.bukkit.event.Cancellable
Superclass for punishment events
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Whether the event was cancelledprotected PunishedPlayer
The player who was punishedFields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ModifierConstructorDescriptionprotected
PunishedPlayerEvent
(PunishedPlayer punishedPlayer) Creates an event object -
Method Summary
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, getHandlers, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled, setCancelled
-
Field Details
-
punishedPlayer
The player who was punished -
cancelled
protected boolean cancelledWhether the event was cancelled
-
-
Constructor Details
-
PunishedPlayerEvent
Creates an event object- Parameters:
punishedPlayer
- The player who was punished- See Also:
-