Leader permissions doesnt work and invite.
ASILVAPT opened this issue ยท 44 comments
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
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.
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.
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?
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.
in my permissionsEX http://prntscr.com/g5gd9a
I get this error too, sorry the spam: https://pastebin.com/QyvtTtjx
I see, thats the key there. There is somethign wrong with the Sqlite DB. Looks like the uuid column is not there. hmm.
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.
I try disband in console and say that: http://prntscr.com/g5gj9h
Download the latest build from my Jenkins. http://104.236.246.108:8080/job/SimpleClans/
Pushed an update.
Also I have the same problem, I try to do all of we commented in this issue and the problem continues
I have just tested it, with and without Vault, and it worked fine... I can kick, disband, etc.