Class Prefix

java.lang.Object
studio.magemonkey.codex.mccore.chat.Prefix

public class Prefix extends Object
Unlockable Prefix Data
  • Constructor Details

    • Prefix

      public Prefix(String pluginName, String prefix)
      Constructor for prefixes with white square braces
      Parameters:
      pluginName - name of the plugin that gives the prefix
      prefix - prefix text (with colors)
    • Prefix

      public Prefix(String pluginName, String prefix, org.bukkit.ChatColor braceColor)
      Constructor for prefixes with colored square braces
      Parameters:
      pluginName - name of the plugin that gives the prefix
      prefix - prefix text (with colors)
      braceColor - color of the braces containing the prefix
  • Method Details

    • tag

      public String tag()
      Returns:
      tag for the prefix
    • pluginName

      public String pluginName()
      Returns:
      the name of the plugin that gives this prefix
    • text

      public String text()
      Returns:
      the text of the prefix including colors
    • textWithoutColor

      public String textWithoutColor()
      Returns:
      the text of the prefix without colors
    • toString

      public String toString()
      Represents the prefix as a string for config saving
      Overrides:
      toString in class Object
      Returns:
      prefix data represented as a string