Package nl.minetopiasdb.api.events.bank
Class BankAccountAddUserEvent
java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.bank.BankAccountAddUserEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class BankAccountAddUserEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Event thrown when someone uses /bankaccount adduser
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionBankAccountAddUserEvent
(org.bukkit.command.CommandSender player, org.bukkit.OfflinePlayer addedPlayer, BankPermission permission, int bankId) -
Method Summary
Modifier and TypeMethodDescriptionint
Get the account associated with this actionorg.bukkit.OfflinePlayer
See what player was added to the accountGet the type of bankaccountstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
Get the bankpermission of this userorg.bukkit.command.CommandSender
See who added the playerboolean
void
setCancelled
(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
BankAccountAddUserEvent
public BankAccountAddUserEvent(org.bukkit.command.CommandSender player, org.bukkit.OfflinePlayer addedPlayer, BankPermission permission, int bankId)
-
-
Method Details
-
getPlayer
public org.bukkit.command.CommandSender getPlayer()See who added the player- Returns:
- Player who executed /bankaccount adduser
-
getAddedPlayer
public org.bukkit.OfflinePlayer getAddedPlayer()See what player was added to the account- Returns:
- the added player
-
getPermission
Get the bankpermission of this user- Returns:
- permission bankpermission
-
getAccountId
public int getAccountId()Get the account associated with this action- Returns:
- account assosiated with this event
-
getBankAccountType
Get the type of bankaccount- Returns:
- Type of bankaccount
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-