public class PlayerLoginSkinEvent extends java.lang.Object implements SkinEvent
SkinEvent
that executes a CommandList
at connection setup.Modifier and Type | Field and Description |
---|---|
private CommandList |
commandList
The
CommandList to execute. |
private ItemSet |
itemSet
The
ItemSet to watch. |
private ItemSetListener |
itemSetListener
The
ItemSetListener attached to itemSet . |
private boolean |
login
Whether to generate login events (
true ) or logout events (false ). |
Constructor and Description |
---|
PlayerLoginSkinEvent(boolean login,
CommandList commandList,
ItemSet itemSet)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Will be called when the skin is disposed.
|
@NotNull private final CommandList commandList
CommandList
to execute.@NotNull private final ItemSetListener itemSetListener
ItemSetListener
attached to itemSet
.private final boolean login
true
) or logout events (false
).public PlayerLoginSkinEvent(boolean login, @NotNull CommandList commandList, @NotNull ItemSet itemSet)
login
- whether to generate login events (true
) or logout
events (false
)commandList
- the command list to executeitemSet
- the item set to watch