Class CommandPreprocess

  • All Implemented Interfaces:
    org.bukkit.event.Cancellable

    public final class CommandPreprocess
    extends BasePlayer
    implements org.bukkit.event.Cancellable
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bukkit.event.Event

        org.bukkit.event.Event.Result
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandPreprocess​(org.bukkit.entity.Player player, java.lang.String message)
      CommandPreprocess This event is called when a command is entered by a player in a Domain field
    • Constructor Detail

      • CommandPreprocess

        public CommandPreprocess​(org.bukkit.entity.Player player,
                                 java.lang.String message)
        CommandPreprocess This event is called when a command is entered by a player in a Domain field
        Parameters:
        player - The player that ran the command
        message - The command being entered
    • Method Detail

      • getCommand

        public java.lang.String getCommand()
      • getCancelReason

        public java.lang.String getCancelReason()
      • setCancelReason

        public void setCancelReason​(java.lang.String cancelReason)
      • isCancelled

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

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