public abstract class SourcedEvent
extends org.bukkit.event.Event
| Modifier | Constructor and Description |
|---|---|
protected |
SourcedEvent(org.bukkit.command.CommandSender source) |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.command.CommandSender |
getSource()
Source of this event.
|
boolean |
hasSource()
Whether or not this event has a source specified.
|
protected SourcedEvent(@Nullable
org.bukkit.command.CommandSender source)
@Nullable public org.bukkit.command.CommandSender getSource()
CommandSender that is the source of this event or null.public boolean hasSource()