diff --git a/.gitignore b/.gitignore
index 82bd1de..4789f7d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-.devres/
\ No newline at end of file
+.devres/
+.idea/
\ No newline at end of file
diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index 13566b8..0000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# Default ignored files
-/shelf/
-/workspace.xml
-# Editor-based HTTP Client requests
-/httpRequests/
-# Datasource local storage ignored files
-/dataSources/
-/dataSources.local.xml
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
deleted file mode 100644
index 602e8d0..0000000
--- a/.idea/inspectionProfiles/Project_Default.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 5da975f..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/strom.iml b/.idea/strom.iml
deleted file mode 100644
index 5e764c4..0000000
--- a/.idea/strom.iml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 94a25f7..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/api/account.go b/api/account.go
index ea62db1..1c56742 100644
--- a/api/account.go
+++ b/api/account.go
@@ -19,7 +19,7 @@ type Account struct {
}
const (
- ApiBase = "https://api.minecraftservices.com"
+ BaseUrlApi = "https://api.minecraftservices.com"
)
func (a *Account) doMcApiRequest(method string, url string, from any, to any) (err error) {
@@ -72,7 +72,7 @@ type PlayerKeys struct {
}
func (a *Account) FetchKeys() (keys PlayerKeys, err error) {
- err = a.doMcApiRequest("POST", ApiBase+"/player/certificates", nil, &keys)
+ err = a.doMcApiRequest("POST", BaseUrlApi+"/player/certificates", nil, &keys)
return
}
diff --git a/modules/login_server.go b/modules/login_server.go
deleted file mode 100644
index 9d561fd..0000000
--- a/modules/login_server.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package modules
-
-import (
- "fmt"
-
- "github.com/admin-else/strom"
-)
-
-type LoginServer struct {
- *strom.Conn
-}
-
-func (l LoginServer) Default(event any) (err error) {
- err = fmt.Errorf("unexpected event: %#v", event)
- return
-}
diff --git a/nbt/nbt.go b/nbt/nbt.go
index c7ef358..6257889 100644
--- a/nbt/nbt.go
+++ b/nbt/nbt.go
@@ -360,7 +360,7 @@ func writePayload(v any, w io.Writer) (err error) {
}
err = binary.Write(w, Order, End)
default:
- err = errors.New("unkown nbt type")
+ err = errors.New("unknown nbt type")
}
return
}