mirror of
https://github.com/CosmicStar98/bedrocktool.git
synced 2024-06-02 03:35:15 +00:00
15 lines
342 B
Go
15 lines
342 B
Go
|
package utils
|
||
|
|
||
|
import (
|
||
|
"github.com/sandertv/gophertunnel/minecraft"
|
||
|
"github.com/sandertv/gophertunnel/minecraft/resource"
|
||
|
)
|
||
|
|
||
|
func GetPacks(server *minecraft.Conn) (packs map[string]*resource.Pack, err error) {
|
||
|
packs = make(map[string]*resource.Pack)
|
||
|
for _, pack := range server.ResourcePacks() {
|
||
|
packs[pack.Name()] = pack
|
||
|
}
|
||
|
return
|
||
|
}
|