|
@@ -4,6 +4,8 @@ import (
|
|
|
"encoding/json"
|
|
|
"net/http"
|
|
|
"strconv"
|
|
|
+
|
|
|
+ "aytechnology.us/gominecraft/mod/mc"
|
|
|
)
|
|
|
|
|
|
func ReadLog(w http.ResponseWriter, r *http.Request) {
|
|
@@ -34,6 +36,10 @@ func ReadBanIP(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
|
func ReadBanPlayer(w http.ResponseWriter, r *http.Request) {
|
|
|
config := Config.ReadAllBannedPlayers()
|
|
|
+ for _, item := range config {
|
|
|
+ skin := mc.NewHandler(item.UUID, serverConfig.Folder+"/skin/")
|
|
|
+ skin.DownloadSkin()
|
|
|
+ }
|
|
|
jsonData, _ := json.Marshal(config)
|
|
|
sendJSONResponse(w, string(jsonData))
|
|
|
}
|
|
@@ -46,6 +52,10 @@ func ReadEULA(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
|
func ReadOps(w http.ResponseWriter, r *http.Request) {
|
|
|
config := Config.ReadAllOps()
|
|
|
+ for _, item := range config {
|
|
|
+ skin := mc.NewHandler(item.UUID, serverConfig.Folder+"/skin/")
|
|
|
+ skin.DownloadSkin()
|
|
|
+ }
|
|
|
jsonData, _ := json.Marshal(config)
|
|
|
sendJSONResponse(w, string(jsonData))
|
|
|
}
|
|
@@ -58,6 +68,10 @@ func ReadProperties(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
|
func ReadWhitelist(w http.ResponseWriter, r *http.Request) {
|
|
|
config := Config.ReadAllWhitelists()
|
|
|
+ for _, item := range config {
|
|
|
+ skin := mc.NewHandler(item.UUID, serverConfig.Folder+"/skin/")
|
|
|
+ skin.DownloadSkin()
|
|
|
+ }
|
|
|
jsonData, _ := json.Marshal(config)
|
|
|
sendJSONResponse(w, string(jsonData))
|
|
|
}
|