This commit is contained in:
Tnze
2022-11-17 00:32:38 +08:00
parent 7a2b3da584
commit 3e83d1dbca
8 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@ package realms
import "fmt"
// Invite invite player to Realm
// Invite player to Realm
func (r *Realms) Invite(s Server, name, uuid string) error {
pl := struct {
Name string `json:"name"`

View File

@ -8,7 +8,7 @@ func (r *Realms) Available() (ok bool, err error) {
return
}
// Compatible returns whether the clients version is up to date with Realms.
// Compatible returns whether the clients version is up-to-date with Realms.
//
// if the client is outdated, it returns OUTDATED,
// if the client is running a snapshot, it returns OTHER,

View File

@ -23,7 +23,7 @@ func (e *Error) Error() string {
}
// Domain is the URL of Realms API server
// Panic if it cannot be parse by url.Parse().
// Panic if it cannot be parsed by url.Parse().
var Domain = "https://pc.realms.minecraft.net"
// New create a new Realms c with version, username, accessToken and UUID without dashes.