Fix spelling errors in comments and documentation (#7492)
This commit is contained in:
@@ -78,7 +78,7 @@ minecraft,player=dinnerbone,source=127.0.0.1,port=25575 deaths=1i,jumps=1999i,co
|
||||
minecraft,player=jeb,source=127.0.0.1,port=25575 d_pickaxe=1i,damage_dealt=80i,d_sword=2i,hunger=20i,health=20i,kills=1i,level=33i,jumps=264i,armor=15i 1498261397000000000
|
||||
```
|
||||
|
||||
[server.properies]: https://minecraft.gamepedia.com/Server.properties
|
||||
[server.properties]: https://minecraft.gamepedia.com/Server.properties
|
||||
[scoreboard]: http://minecraft.gamepedia.com/Scoreboard
|
||||
[objectives]: https://minecraft.gamepedia.com/Scoreboard#Objectives
|
||||
[rcon]: http://wiki.vg/RCON
|
||||
|
||||
@@ -57,7 +57,7 @@ type Packet struct {
|
||||
Body string // Body of packet.
|
||||
}
|
||||
|
||||
// Compile converts a packets header and body into its approriate
|
||||
// Compile converts a packets header and body into its appropriate
|
||||
// byte array payload, returning an error if the binary packages
|
||||
// Write method fails to write the header bytes in their little
|
||||
// endian byte order.
|
||||
@@ -112,7 +112,7 @@ func (c *Client) Execute(command string) (response *Packet, err error) {
|
||||
|
||||
// Sends accepts the commands type and its string to execute to the clients server,
|
||||
// creating a packet with a random challenge id for the server to mirror,
|
||||
// and compiling its payload bytes in the appropriate order. The resonse is
|
||||
// and compiling its payload bytes in the appropriate order. The response is
|
||||
// decompiled from its bytes into a Packet type for return. An error is returned
|
||||
// if send fails.
|
||||
func (c *Client) Send(typ int32, command string) (response *Packet, err error) {
|
||||
@@ -152,7 +152,7 @@ func (c *Client) Send(typ int32, command string) (response *Packet, err error) {
|
||||
}
|
||||
|
||||
if packet.Header.Type == Auth && header.Type == ResponseValue {
|
||||
// Discard, empty SERVERDATA_RESPOSE_VALUE from authorization.
|
||||
// Discard, empty SERVERDATA_RESPONSE_VALUE from authorization.
|
||||
c.Connection.Read(make([]byte, header.Size-int32(PacketHeaderSize)))
|
||||
|
||||
// Reread the packet header.
|
||||
|
||||
Reference in New Issue
Block a user