Created custom event.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>
Renamed the event.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>
Updated listener to listen for the custom event and update MySQL.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>
Now calls the custom event when removing a player.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>
Now only writes to the database, overwrites any previous data.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>
Only updates the MySQL-database when it's called from the outside.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>