I don't have experience with purechat, but you first need to know were the format is saved in for example config.yml Example of config.yml: chatformat: [Player] %player% > %message% You need to get the string and replace %player% etc with your variable, like this PHP: str_replace("%player%", $player, $chatformat);