-
-
Notifications
You must be signed in to change notification settings - Fork 308
Plugin is not working
Robin edited this page Jan 25, 2020
·
27 revisions
- For the v2 plugin, you must be using the latest version of NamelessMC v2 (currently v2-pre7)
- Make sure the api is enabled in the control panel
- Make sure that legacy api is disabled
- The API url should be in this format:
http(s)://yoursite.com/index.php?route=/api/v2/API_KEY
. NamelessMC versions older than v2-pre7 provide the api url in this formathttp(s)://yoursite.com/v2/API_KEY
which does not always work. - Go to the address in your browser. Does it work? If it says "invalid api method" somewhere it works. If it works in your browser but not from the plugin, you are probably using cloudflare or some other ddos prevention system:
- Are you using cloudflare? Either use the non-cloudflare webserver address in config.yml, or find a way to exempt requests from the plugin in cloudflare from any checks.
- If you are getting
MalformedJsonException: Use JsonReader.setLenient(true)
errors but not using cloudflare it's probably your webhost messing with the plugin's requests. - Restart your server, maybe it was an old error
If you need further help, feel free to join our Discord server for support 😃