Class ChatSelector

java.lang.Object
com.stardevllc.starchat.ChatSelector
Direct Known Subclasses:
PrivateChatSelector

public abstract class ChatSelector extends Object
  • Constructor Details

    • ChatSelector

      public ChatSelector(String type)
  • Method Details

    • getType

      public final String getType()
    • getSelection

      public abstract ChatSelector.ChatSelection getSelection(org.bukkit.entity.Player player, String[] args)
      This method is called when the type value is the same. This has the lowest priority in terms of determining what chat space is used for the command. The usage of the command is /chat [name] [other]
      Parameters:
      player - The Player that used the /chat command
      args - The arguments of the command. This is the full arguments and not stripped down in any way.
      Returns:
      The selection for the space