Hey guys, it’s been a while. Here’s a new version that fixes some existing issues, especially with the newest versions of Sponge API 7. It also features awesomely improved support for HuskyCrates!
A new version has been released for Web-API, it is available for download here.
This release fixes compatibility with Sponge API 7 after cause refactor. So if you’re using one of the newest Sponge API 7 versions and you’ve had errors spammed in your console this should fix it!
Fix incorrect default config for hooks
Add better error messages for config and hook failures
Add deserializer for ItemStack and BlockState (removes the need for ItemStackRequest and BlockStateRequest)
Improve server properties endpoint
Fix API Servlet trying to set header when response is already provided
Improve block operations
Add create and change endpoints for HuskyCrates
Fix compatibility with Sponge API 7 after cause refactor
Hello, Valandur! Your plugin is a very cool tool. Yesterday I install this plugin, I control my server from my smartphone now, this is really cool thing.
I have a proposal. Language localization. Make a language file, migrate all messages injected to program files, to special language file. I see your files in plugin, messages integrated to various files directly. These messages replaced to some variables. In language file these variables to be assigned a value. For example, strings from assets/webapi/admin/static/js/main.5235d84f.js file:
[English]
MsgPluginsHeaderTitle=“This section of the admin panel is not yet completed”
[German]
[Russian]
[Chinese]
[some other language?]
This file must be in a UTF-8 code page. Some peoples from various countries send to you a language sections. You insert these sections to this language file. In setting section make a new parameter - “Language”
This is a very great idea, and I’ve added translations to the AdminPanel. They will be released with the next update, but since I’m very busy it might take about 2 weeks or so.
If anyone is interested in helping, the translated strings can currently be found here on github. English and German are mostly done, I will start doing French as soon as I can. Any help/languages is/are greatly appreciated.
I’m looking forward to the next update - it’s gonna be a big one
If you add the plugin to your server, you can access the admin panel at http://localhost:8080 or https://localhost:8081from your server. I recommend setting up something like apache or nginx as a proxy for that address.
If you don’t want to do that you can edit the config/webapi/config.conf file on the server and change the host to 0.0.0.0but only after you edit the config/webapi/permissions.conf file to change the default permissions
I will release a documentation about how to set up the AdminPanel externally (on a webserver) and make it connect to multiple Web-APIs soon, probably this weekend. The functionality is already there!
I know that RedProtect has been updated, and I will add back the integration for it as soon as I can (probably during next week)
A new version has been released for Web-API, it is available for download here.
Don’t count OPTIONS requests in rate limit
Allow configuring the Access-Control-Origin header sent in responses
Don’t show the AdminPanel link after startup if it isn’t activated