Test of offline UUID
This commit is contained in:
@ -2,6 +2,7 @@ package bot
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
|
"fmt"
|
||||||
"github.com/Tnze/go-mc/yggdrasil"
|
"github.com/Tnze/go-mc/yggdrasil"
|
||||||
"log"
|
"log"
|
||||||
)
|
)
|
||||||
@ -74,3 +75,10 @@ func ExampleClient_JoinServer_online() {
|
|||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ExampleOfflineUUID() {
|
||||||
|
fmt.Println(OfflineUUID("Tnze"))
|
||||||
|
|
||||||
|
// output:
|
||||||
|
// c7b9eece-2f2e-325c-8da8-6fc8f3d0edb0
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user