-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having Issues with Admin Permissions with FE. #525
Comments
Opps example of the command: Thanks. |
I'm pretty sure you'd have this same problem with either Bukkit or ServerTools, since the issue is either in MyTown or in MyPermissions. public boolean hasPermission(ICommandSender sender, CommandTreeNode node) throws CommandException {
if(!node.getAnnotation().console() && (sender instanceof MinecraftServer || sender instanceof RConConsoleSource || sender instanceof CommandBlockLogic)) {
throw new CommandException("commands.generic.permission");
}
if(sender instanceof EntityPlayer) {
UUID uuid = ((EntityPlayer) sender).getUniqueID();
String permission = node.getAnnotation().permission();
if (PermissionProxy.getPermissionManager().hasPermission(uuid, permission) &&
/* ---->>>> */ (customManager != null && customManager.hasPermission(uuid, permission))) {
return true;
}
throw new CommandException("commands.generic.permission");
}
return true;
} |
Meanwhile, I've forked the MyPermissions repo and fixed this bug. |
Hello again using the latest version of Permissions things been going well besides a few odd errors like when your not in a town and use /mytown select and get the following error:
https://pastebin.com/4wa7gqyg
That is annoying but really it's fine as we can just tell people they get errors it normally means the command was done wrong or their not in a town, etc.
The biggest issue today we hit was starting to secure Admin land used for adventure style area's. Pretty much Teleport hubs, etc. The problem here is I get permissions error even if I gutt my permissions out 100% and just add like . or mytown.* etc. or add every node possible using p debug I still end up getting permission errors even with full out OP.
I'm guessing there might be something separate from the changes that you made that might of not applied to admin towns?
Either way Just throwing a report in if you don't have time for it I 100% understand. We can use an alt account or something and use normal player town protection.
Thanks!
The text was updated successfully, but these errors were encountered: