(p *PlayerEntity)
| 22 | } |
| 23 | |
| 24 | func (mgr *PlayerEntityManager) add(p *PlayerEntity) { |
| 25 | mgr.mu.Lock() |
| 26 | defer mgr.mu.Unlock() |
| 27 | mgr.m[p.UUID()] = p |
| 28 | } |
| 29 | |
| 30 | // saves all the players in the manager to the path specified in their data file |
| 31 | func (mgr *PlayerEntityManager) SaveAll() { |