Class BankAccountRemoveUserEvent

java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.bank.BankAccountRemoveUserEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class BankAccountRemoveUserEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Event thrown when someone uses /bankaccount removeuser
  • Constructor Details

    • BankAccountRemoveUserEvent

      public BankAccountRemoveUserEvent(org.bukkit.command.CommandSender player, org.bukkit.OfflinePlayer removedPlayer, int bankId)
  • Method Details

    • getPlayer

      public org.bukkit.command.CommandSender getPlayer()
      See who added the player
      Returns:
      Player who executed /bankaccount removeuser
    • getRemovedPlayer

      public org.bukkit.OfflinePlayer getRemovedPlayer()
      See what player was removed from the account
      Returns:
      the removed player
    • getAccountId

      public int getAccountId()
      Get the account associated with this action
      Returns:
      account associated with this event
    • getBankAccountType

      public BankAccountType getBankAccountType()
      Get the type of bankaccount
      Returns:
      Type of bankaccount
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable