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
@Valandur I quite enjoy the concept behind this plugin and giving it a more extensive look it seems to do more than I thought. Keep up the great work and the consistent releases.
This is really useful and beautiful plugin, but everytime I restart my server it says that username or password is invalid and I need to manually set the password back. Is there anything I can do to fix this? Iâm using Minecraft 1.12.2.
I noticed we have the option to specify a keystore. Is there a way to specify a password? If not, can you add support for keystores with passwords. Thanks!
When using the whitelist, the WebAPI will think all public traffic is under the reverseproxyâs internal IP. So if I access the public domain from 222.222.222.222, webapi will log this as 192.168.0.50 (Internal IP of reverse proxy).
Is it possible to work around this so that I can still use the whitelist?
Iâm adding this to the next version, sorry I forgot about that
Currently that is not possible, and a flaw I didnât think of. I will add support for the X-Forwarded-For HTTP header, which most proxies use to include the original IP. I will also add a list of allowed proxies, so not any client can send this header along and fake the IP. If this does not completely cover your use case please tell me and I will see what I can do!
Hello there I am painfully aware of the lacking documentation for the admin panel It has nothing to do with you!
Hereâs a tiny little tutorial that I hope will get you up and running until I have time to make an actual one. Iâm also thinking about moving the AdminPanel to an individual plugin, to increase awareness and provide more specific support for it there.
Until then, here goes:
Make sure you have the Web-API plugin installed like any other plugin (put it into the mods folder of your server and restart your server)
After your server has started, use the command /webapi users add admin to add a new user called admin to the AdminPanel. This will automatically generate a password and show it to you. You can do this from the server console or ingame.
Now depending on where your minecraft server is running you will have to take different steps
Your minecraft server is running on your own computer/desktop/laptop
You can access the internet page http://localhost:8080 or https://localhost:8081 to access the admin panel. Please remember that this will only work on the computer you are running the minecraft server from
Your minecraft server is running on another computer or server
You will have to edit the config file webapi/config.conf and set host="0.0.0.0", this will make it so that you can connect to the AdminPanel from other computers aswell.
Reload the webapi plugin using sponge plugins reload, or restart your minecraft server
You should now be able to access the AdminPanel on your server, to do this you need to know the IP/URL of your server.
For example, if your server is running at 88.88.88.88 then you will have to open the web page: http://88.88.88.88:8080.
If your server has a domain name, for example my.mc-server.com, then you can use that: http://my.mc-server.com:8080
For anyone in the need of support I have set up a discord server that you can join with this invite link or you can directly message me @ Valandur#3581