Package com.nickuc.chat.api.translator
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 TypeMethodDescriptionorg.bukkit.plugin.PlugingetOwner()Gets the plugin instance that owns this global tag.replaceTag(org.bukkit.entity.Player player, String tag) Replaces a registered tag.
-
Method Details
-
replaceTag
Replaces a registered tag.- Parameters:
player- the player who requested the replacementtag- 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.
-