Account changes

- now supports custom enviorments/servers
- cleaner code imo
This commit is contained in:
adman
2026-03-25 14:48:42 +01:00
parent 6179c5f6b6
commit 46770ed980
2 changed files with 74 additions and 37 deletions
+10
View File
@@ -0,0 +1,10 @@
package api
import "github.com/admin-else/strom/crypto"
func NewOfflineAccount(name string) *Account {
return &Account{
Name: name,
Uuid: crypto.FromOfflinePlayer(name),
}
}