Class PlayerChangePrefixEvent

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

public class PlayerChangePrefixEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Event thrown right before someone's prefix changes
  • Constructor Details

    • PlayerChangePrefixEvent

      public PlayerChangePrefixEvent(SDBPlayer player, String newPrefix)
  • Method Details

    • getPlayer

      public SDBPlayer getPlayer()
      Get the player whose prefix was changed
      Returns:
      player who now has a different prefix.
    • getNewPrefix

      public String getNewPrefix()
      Get the new prefix for this player
      Returns:
      new prefix
    • 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