bivashy/MC-Auth-with-Link

"Not your account" error in messenger, when I have administrator permissions

Closed this issue · 0 comments

I have added myself to the administrators in telegram-config.yml

Commands like: /admin works without problem

But when i press on some accounts buttons it will say "Not your account"

And every such "invalid account" doesn't linked their accounts.

I think core problem is

if (!linkUser.isPresent())
throw new SendMessageException(linkType.getSettings().getMessages().getMessage("not-your-account"));

We should check if user is administrator and AFTER decide if player is owner or not