Class PlayerMessages

java.lang.Object
com.ordwen.odailyquests.api.commands.player.PlayerMessages
Direct Known Subclasses:
PlayerCommandBase, PlayerCommands

public abstract class PlayerMessages extends Object
Provides methods for sending predefined messages to players.

This abstract class is used to send specific messages to the sender, such as help messages, permission errors, and other command-related feedback. These messages are defined in the QuestsMessages enum.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    help(org.bukkit.command.CommandSender sender)
    Sends the player help message to the sender.
    protected void
    invalidCategory(org.bukkit.command.CommandSender sender)
    Sends a message to the sender indicating that the category is invalid.
    protected void
    noPermission(org.bukkit.command.CommandSender sender)
    Sends the no permission message to the sender.
    protected void
    noPermissionCategory(org.bukkit.command.CommandSender sender)
    Sends the no permission category message to the sender.
    protected void
    playerOnly(org.bukkit.command.CommandSender sender)
    Sends a message to the sender indicating that the command can only be executed by a player.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlayerMessages

      public PlayerMessages()
  • Method Details

    • help

      protected void help(org.bukkit.command.CommandSender sender)
      Sends the player help message to the sender.
      Parameters:
      sender - the sender.
    • noPermission

      protected void noPermission(org.bukkit.command.CommandSender sender)
      Sends the no permission message to the sender.
      Parameters:
      sender - the sender.
    • noPermissionCategory

      protected void noPermissionCategory(org.bukkit.command.CommandSender sender)
      Sends the no permission category message to the sender.
      Parameters:
      sender - the sender.
    • playerOnly

      protected void playerOnly(org.bukkit.command.CommandSender sender)
      Sends a message to the sender indicating that the command can only be executed by a player.
      Parameters:
      sender - the sender.
    • invalidCategory

      protected void invalidCategory(org.bukkit.command.CommandSender sender)
      Sends a message to the sender indicating that the category is invalid.
      Parameters:
      sender - the sender.