Re: [Plugin] Checkpoint Records
Posted: 19 Mar 2020, 15:12
Are the " displayed wrong in chat or in some widgets? Screenshot?RelaxedRacer wrote: ↑19 Mar 2020, 14:58 I found a little problem today in the plugin (and maybe more plugins have this not shure)
When a player has a " in the nickname i got errors and it didnt displayed correctly.
I changed this in the code that solved it:
Maybe this " can be added to stripstyles, or i donno, i'm no expert on thisCode: Select all
public function getPlayerNick() { // return $this->player->nickname; $nicknrpl = str_ireplace('"', '', $this->player->nickname); return $nicknrpl; }
![]()