File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -26,4 +26,5 @@ server-icon.png
2626/qnbt2
2727/qnbt2test.go
2828/main
29- /qnbt
29+ /qnbt
30+ my_fucking_git_token
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package main
22
33import (
44 _ "embed"
5- properties2 "github.com/zeppelinmc/zeppelin/properties"
5+ "github.com/zeppelinmc/zeppelin/properties"
66 "math/rand"
77 "os"
88 "runtime"
@@ -94,21 +94,21 @@ func main() {
9494 srv .Start (timeStart )
9595}
9696
97- func loadConfig () properties2 .ServerProperties {
97+ func loadConfig () properties .ServerProperties {
9898 file , err := os .ReadFile ("server.properties" )
9999 if err != nil {
100100 file , err := os .Create ("server.properties" )
101101 if err == nil {
102- properties2 .Marshal (file , properties2 .Default )
102+ properties .Marshal (file , properties .Default )
103103 file .Close ()
104104 }
105- return properties2 .Default
105+ return properties .Default
106106 }
107- var cfg properties2 .ServerProperties
107+ var cfg properties .ServerProperties
108108
109- err = properties2 .Unmarshal (string (file ), & cfg )
109+ err = properties .Unmarshal (string (file ), & cfg )
110110 if err != nil {
111- cfg = properties2 .Default
111+ cfg = properties .Default
112112 }
113113
114114 return cfg
You can’t perform that action at this time.
0 commit comments