SimpleClans

SimpleClans

467k Downloads

Leader permissions doesnt work and invite.

ASILVAPT opened this issue ยท 44 comments

commented

Hi, when i execute some leader command, such as "/clan disband" i get "You do not have leader permission" and same for the invite command, i cant invite any player, i put all nodes to the group:

simpleclans.anyone.*
simpleclans.member.*
simpleclans.leader.*

Last version SimpleClans (http://104.236.246.108:8080/job/SimpleClans/lastStableBuild/artifact/target/SimpleClans.jar)
Spigot 1.8.8
Last version of Vault

Errors: https://pastebin.com/6mENSGrR
My simpleclans config: https://pastebin.com/syHwYYJi

Any help??? Thank you

commented

I use for permissions PermissionsEX 1.23.4.

commented

And i test with OP and say "You do not have leader permission"

commented

Any temporary fix?

commented

I don't know.
Try to edit plugin.yml and change this:
simpleclans.leader.*:
description: Permissions for those who can be clan leaders
default: false
children:
Set default as true.

Or try to give this permission: simpleclans.leader.disband

I will try to fix it next week.

commented

I will try.

commented

With some permissions plugins your best bet is listing out the permissions rather than using the * groups. You can find them in the jar (rename to zip and unzip it) inside the config.yml.

commented

Yes.

commented

Dont work.

commented

Are you the leader of the clan you're trying to disband? i.e. you either created the clan or the creator of the clan used the /clan promote command on you?

commented

Dont work "You do not have leader permission"

commented

For all leader permissions.

commented
        if (!plugin.getPermissionsManager().has(player, "simpleclans.leader.promote")) {
            ChatBlock.sendMessage(player, ChatColor.RED + plugin.getLang("insufficient.permissions"));
            return;
        }

        ClanPlayer cp = plugin.getClanManager().getClanPlayer(player);

        if (cp == null) {
            ChatBlock.sendMessage(player, ChatColor.RED + plugin.getLang("not.a.member.of.any.clan"));
            return;
        }

        Clan clan = cp.getClan();

        if (!clan.isLeader(player)) {
            ChatBlock.sendMessage(player, ChatColor.RED + plugin.getLang("no.leader.permissions"));
            return;
        }

See here's the code a typical command. The messge you are getting is the one that says "no.leader.permissions". Its being fired because you are tyring to use commands for a clan while not being the leader of the clan. Nothign to do with permissions.

commented

How do you know?

commented

You can join on my server to test.

commented

But im the leader of the clan.

commented

sure

commented

Actually, wont help, I wont be able to see your screen.

commented

skype?

commented

Post screenshot of the output of the /clan roster command

commented

wait

commented

What does /clan disband do now?

commented

in my permissionsEX http://prntscr.com/g5gd9a

commented

I get this error too, sorry the spam: https://pastebin.com/QyvtTtjx

commented

I see, thats the key there. There is somethign wrong with the Sqlite DB. Looks like the uuid column is not there. hmm.

commented

How i can see this?

commented

This line:

net.sacredlabyrinth.phaed.simpleclans.managers.StorageManager.retrieveClanPlayers(StorageManager.java:400)

The code at line 400 in file StorageManager.java is trying to pull out the uuid for the player.

Looking into it gimme a sec.

commented

Ok

commented

I try disband in console and say that: http://prntscr.com/g5gj9h

commented

Are you running your server in offline mode by any chance?

commented

Download the latest build from my Jenkins. http://104.236.246.108:8080/job/SimpleClans/

Pushed an update.

commented

I will test.

commented

Yes im running in offline mode.

commented

Yep then the latest build will fix your problem.

commented

Solved! Thank you so much!

commented

np

commented

I have again the problem, no errors in console now.

commented

The leader permissions problem?

commented

"You do not have leader permission"

commented

Also I have the same problem, I try to do all of we commented in this issue and the problem continues

commented

I will look into it tonight (UTC-3).

commented

I have just tested it, with and without Vault, and it worked fine... I can kick, disband, etc.

commented

Great, the problem is if you have in config
online-mode: false
If this in true don't occour the problem.