Web-API - Provides an admin panel and API for your Minecraft server


#189

Thanks for that! Last thing, I have cloudflare in the middle of all of this. Cleared cache/hosting api on port 2053. Site loads and works using the separate files for web. Apache serves it well.

I can login and check out things just fine. However, even after clearing cache and making sure my seetings in config.json were correct, I’m getting mixed content warnings on everything that isn’t the dashboard.

From the web console:

raven.js:1417 Mixed Content: The page at 'https://admin.thebobsgamingnetwork.net/admin/commands' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://admin.thebobsgamingnetwork.net:8080/api/v5/history/cmd?details&&key=[hidden]'. This request has been blocked; the content must be served over HTTPS.
(anonymous) @ raven.js:1417
m._end @ client.js:772
m.end @ client.js:676
(anonymous) @ request-base.js:238
o.then @ request-base.js:237
(anonymous) @ api.ts:250
requestList @ index.tsx:341
t.componentDidMount @ index.tsx:62
Ya @ react-dom.production.min.js:219
Va @ react-dom.production.min.js:212
Ga @ react-dom.production.min.js:211
Ba @ react-dom.production.min.js:211
qa @ react-dom.production.min.js:209
ga @ react-dom.production.min.js:207
enqueueSetState @ react-dom.production.min.js:148
O.setState @ react.production.min.js:12
t @ index.js:205
(anonymous) @ index.js:215
Promise.then (async)
n._loadModule @ index.js:214
n.componentWillMount @ index.js:168
li @ react-dom.production.min.js:152
Ai @ react-dom.production.min.js:175
da @ react-dom.production.min.js:202
ha @ react-dom.production.min.js:203
Va @ react-dom.production.min.js:212
Ga @ react-dom.production.min.js:211
Ba @ react-dom.production.min.js:211
ns @ react-dom.production.min.js:223
An @ react-dom.production.min.js:89
s @ rocket-loader.min.js:1
raven.js:1417 Mixed Content: The page at 'https://admin.thebobsgamingnetwork.net/admin/commands' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://admin.thebobsgamingnetwork.net:8080/api/v5/cmd?details&&key=[hidden]'. This request has been blocked; the content must be served over HTTPS.

What’s weird is that it seems its trying to request data from http even though the dashboard pulls all data via https.

I can curl just fine now though.

$ curl -XPOST -H 'x-webapi-key: //////' -H "Content-type: application/json" -d '[
{
"command": "say hello",
"name": "donator-bot",
"waitLines": 0,
"waitTime": 20
}
]' 'https://admin.thebobsgamingnetwork.net:2053/api/v5/cmd'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   130  100    45  100    85     45     85  0:00:01 --:--:--  0:00:01   333
[{"ok":true,"cmd":"say hello","response":[]}]

Here’s my config

window.config = {
        "basePath": "/admin/",
        "servers": [{
                "name": "Lapitos-Galacticraft",
                "apiUrl": "http://admin.thebobsgamingnetwork.net:8080",
                "apiUrlHttps": "https://admin.thebobsgamingnetwork.net:2053",
        }]
};

#190

I’m very happy to announce that with the work of the great @DosMike Web-API now offers an integration for VillagerShops. You can also use this integration in the AdminPanel to edit shops and the items that they offer.

@sfxworks thanks for reporting your issue, it was actually a bug and should be fixed now :slight_smile:


A new version has been released for Web-API, it is available for download here.



#191

So, this is hands down one of the coolest Sponge projects I’ve ever come across… truly amazing work! I run a 5.2 server, and I noticed there’s a 5.2 version listed as a “pre-release”. Is this stable enough to use, or will I need to simply keep this in mind for my next server?


#192

A new version has been released for Web-API, it is available for download here.



#193

Hi, sorry for the late reply.

Thank you very much!

What exactly do you mean with a 5.2 server? Are you using Sponge API 6.x?
If you’re using Sponge API 7.x then I would recommend using Web-API 5.4.0. I’m afraid I forgot to upload the latest release to Ore, but downloads are also always available on Github.


#194

A new version has been released for Web-API, it is available for download here.


  • Updated integrations
  • Fixed an issue with newest MMCRestrict version

#195

Hello, I’m running the latest version you just released on a sponge.

There was a mistake
.123
WebApi doesn’t seem to be running.

Configuration files were not generated under the config folder


#196

Sorry for my personal reasons during the test.

But does the map function need an affiliated plug-in?


#197

A new version has been released for Web-API, it is available for download here.


  • Possible fix for webhooks blocking main thread

#198

A new version has been released for Web-API, it is available for download here.


  • Fix long server start time when searching for plugins

#199

A new version has been released for Web-API, it is available for download here.



#200

Where is the language file? I want to translate it.


#201

A new version has been released for Web-API, it is available for download here.


  • Fix issue with hook events

#202

Thanks for your contribution. I’m using the plugin now, which greatly improved my management efficiency, felling awesome. May I publish the plugin on MCBBS (a Chinese-language minecraft forum) with all copyright information retained? :slight_smile: