The error comes from the plugin and it's a customized one ("Unauthorized") but the code code source of the plugin is:
Puts ("Checking connection to server");
config.Token = "myPrivateToken"
config.Host = "https://rust.maelep.be"
headers = new Dictionary<string, string> { { "Authorization", "Bearer " + config.Token }, { "Accept", "application/json" } };
webrequest.Enqueue (config.Host + "/api/server/connectioncheck", null, (code, response) => {
if (code != 200 || response == null) {
Puts ($"Connection failed. Response: {response}");
return;
}
Puts ("Connection established and token validated successfully");
}, this, RequestMethod.GET, headers);
if (config.PollingInterval > 0) {
timer.Every (config.PollingInterval, () => {
PollUsers ();
});
}
And the source code of "connectioncheck" of the CMS is too hard to find but I found some files that can probably help you. I sent you it in private. An answer from the developer: