Skip to content
IvanCraft623 edited this page Aug 7, 2022 · 1 revision

Tags Manager

Class that manage tags

$tagmanager = $ranksystem->getTagManager();

Get a Tag

Gets a tag through its id.

$tag = $tagmanager->getTag("{chat_ranks_prefix}");

Get all Tags

Get all registered tags.

$tag = $tagmanager->getTag();

Register a Custom Tag

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 {}

Clone this wiki locally