package main import "net/http" func SendCommand(w http.ResponseWriter, r *http.Request) { command, _ := mv(r, "command", false) MCServer.SendCommand(command) sendJSONResponse(w, "OK") }