Class PlayerPlotTrustedEvent

java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlayerPlotTrustedEvent

public class PlayerPlotTrustedEvent extends PlotEvent
  • Constructor Details

    • PlayerPlotTrustedEvent

      public PlayerPlotTrustedEvent(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added)
      PlayerPlotTrustedEvent: Called when a plot trusted user is added/removed
      Parameters:
      initiator - Player that initiated the event
      plot - Plot in which the event occurred
      player - Player that was added/removed from the trusted list
      added - true of the player was added, false if the player was removed
  • Method Details

    • wasAdded

      public boolean wasAdded()
      If a player was added
      Returns:
      boolean
    • getPlayer

      public UUID getPlayer()
      The UUID added/removed
      Returns:
      UUID
    • getInitiator

      public PlotPlayer<?> getInitiator()
      The player initiating the action
      Returns:
      PlotPlayer