MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / add

Method add

server/player/state/playerEntityManager.go:24–28  ·  view source on GitHub ↗
(p *PlayerEntity)

Source from the content-addressed store, hash-verified

22}
23
24func (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
31func (mgr *PlayerEntityManager) SaveAll() {

Callers 1

NewMethod · 0.95

Calls 1

UUIDMethod · 0.45

Tested by

no test coverage detected