I am trying to get a player's chat format from PureChat. I looked through the code and I see a function getChatFormat(). How can I access that from my plugin and use it? PureChat: https://github.com/PurePlugins/PureChat/
What is "chat format"? What does it include? Do you want to get the message of the player or a part of the message?
The getChatFormat() returns the nametag the player has after the PureChat styling has been added (to ensure that my plugin doesn't mess it up). Example nametag: [Example] HittmanA | Example chat nametag: [Example] HittmanA: Hi
From the plugins main file, you can use PHP: $pp = $this->getServer()->getPluginManager()->getPlugin("PurePerms"); after that, you can just use whatever functions needed to do what you want within the plugin.