How to setup the Nameless Plugin to link to your Nameless Store
For the store module to be able to execute commands on your minecraft server you need to have the Nameless Plugin installed and setup on your server, Follow these instructions on how to setup it
- Download and install the Nameless Plugin on your server.
- Restart your server to generate the files for the nameless plugin.
- Open the file main.yaml there you will need to enter the api url and api key, You can find these at StaffCP -> Configuration -> API
api: # Enable the API and obtain the API URL and API key in StaffCP > Configuration > API url: "ENTER API URL HERE" key: "ENTER API KEY HERE"
- Open the file modules.yaml there you need to enable command-executor for store section AND enter the connection-id, You can create and find the connection id at StaffCP -> Store Configuration -> Service Connections -> Connection ID (Very important you have a own connection id for each server)
store: connection-id: 1 command-executor: enabled: true interval: PT1M
- Now restart your server it should now successfully be connected to the store api, And you should no longer see the warning about no api fetch
There has been no API fetch within the last hour!
This warning means the store connection has got no connection from your nameless plugin within the last hour and suggest something is wrong with your setup, Make sure sure you followed all the steps above and the connection between your server and site is accessable
Some possible cases:
- For someone it works to restart the server if you just reloaded server after the setup.
- You have entered the api url, api key or connection id incorrectly.
- NamelessMC servers and service connections is not the same! You need to use service connections.
- You have may enabled wrong module in modules.yaml, Make sure you enabled the Store section.
- If you're using Cloudflare, Cloudflare may block the access to the api, Read more on how to solve it.