Describe the bug
When a player Joins, inside the onPlayerJoin() event a timer is attached to the player. When the player rejoins, there are two timer objects on the character.
To Reproduce
Steps to reproduce the behavior:
- Run server with plugin installed
- Login into server, check server log.
- Log out of server and re-log and see that there are now two timers.
- See error in server log
Expected behavior
When the player joins, their amount of time played is tracked. Upon logout this number is tracked and the timer stops. When they login it is tracked again.
Desktop (please complete the following information):
- OS: Win 10
- Java Version: 14
- Plugin Version: 1.0 Dev
Additional context
If anyone has any ideas please comment below!