Interface GlobalTag


public interface GlobalTag
Global tags can be used to replace custom tags in all nChat contexts.

To register a global tag, use the nChatAPI.setGlobalTag(String, GlobalTag) method.

  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.plugin.Plugin
    Gets the plugin instance that owns this global tag.
    replaceTag(org.bukkit.entity.Player player, String tag)
    Replaces a registered tag.
  • Method Details

    • replaceTag

      @Nullable String replaceTag(org.bukkit.entity.Player player, String tag)
      Replaces a registered tag.
      Parameters:
      player - the player who requested the replacement
      tag - the tag to be replaced
      Returns:
      the replaced tag
    • getOwner

      @Nonnull org.bukkit.plugin.Plugin getOwner()
      Gets the plugin instance that owns this global tag.