Stop Duplication of SQL Data

So pretty straight forward.

  • I have apply damage which is on server.
  • Player kills and deaths are stored on player state
  • When I execute code, it is duplicating, or only working on server.

Where do you usually put player stats and the function to send it to your database?

Using VARest + PHP + SQL for database.