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

Method Player

server/player/playerlist.go:24–33  ·  view source on GitHub ↗
(uuid uuid.UUID)

Source from the content-addressed store, hash-verified

22}
23
24func (list *PlayerList) Player(uuid uuid.UUID) *Player {
25 for i := uintptr(0); i < list.playerList.Len(); i++ {
26 player := list.playerAtIndex(i)
27
28 if player.UUID() == uuid {
29 return player
30 }
31 }
32 return nil
33}
34
35func (list *PlayerList) PlayerByUsername(name string) *Player {
36 for i := uintptr(0); i < list.playerList.Len(); i++ {

Callers

nothing calls this directly

Calls 3

playerAtIndexMethod · 0.95
LenMethod · 0.80
UUIDMethod · 0.45

Tested by

no test coverage detected