-
Notifications
You must be signed in to change notification settings - Fork 22
Tags
IvanCraft623 edited this page Aug 7, 2022
·
1 revision
Class that manage tags
$tagmanager = $ranksystem->getTagManager();Gets a tag through its id.
$tag = $tagmanager->getTag("{chat_ranks_prefix}");Get all registered tags.
$tag = $tagmanager->getTag();With this, users will be able to use the tag to configure the format of their chat or nametag.
Import:
use IvanCraft623\RankSystem\tag\Tag;Register
$tagmanager->registerTag(new Tag("test", static function(Session $session) : string {
return "Hello, {$session->getName()}!";
}));Note that you should not write curly brackets {}