public function onRegisterPrefix() { EssentialsPEChat::getInstance()->replacePrefix("{MONEY}", MassiveEconomyAPI::getInstance()->getMoney(EssentialsPEChat::getInstance()->getCurrentEvent()->getPlayer()->getName())); }
public function onRegisterPrefix() { EssentialsPEChat::getInstance()->replacePrefix("{Kills}", $this->getKills(EssentialsPEChat::getInstance()->getCurrentEvent()->getPlayer()->getName())); EssentialsPEChat::getInstance()->replacePrefix("{Deaths}", $this->getDeaths(EssentialsPEChat::getInstance()->getCurrentEvent()->getPlayer()->getName())); }
public function onRegisterPrefix() { $isMultiWorldEnabled = $this->pureperms->getConfig()->get("enable-multiworld-formats"); $levelName = $isMultiWorldEnabled ? $player->getLevel()->getName() : null; EssentialsPEChat::getInstance()->replacePrefix("{PurePerms}", PurePerms::getInstance()->getUser($player)->getGroup($levelName)(EssentialsPEChat::getInstance()->getCurrentEvent()->getPlayer()->getName())); }