Permissions.yml not working
Dromdude opened this issue · 17 comments
I cannot figure out why my permissions ex is not working. After adding some donator ranks to my permissionex.yml i am no longer able to use any pex commands on my server. When i type a command in it gives me no errors or anything. I've read through it like 5 times and do not see any errors or mistakes. Here's my permission file https://pastebin.com/eNegBveR
Corrected all issues: https://pastebin.com/DNw1aJih
The way inheritance works, in this corrected paste, is that "Member" is not inheriting from anyone, so they have an "empty" inheritance section (which is required by Minecraft 1.9+). You then had "Donator" inheriting from "Member", so I removed the duplicate permission nodes— essentials.help
, essentials.rules
, and essentials.motd
because they're all in "Member" and inherited —from the "Donator" group. Similarly, "VIP" inherits from "Donator", so it gets all of "Donator"'s permissions (which includes all of "Members" permissions), so we list only "Donator" as the inheritance for "VIP". This same pattern continued through the rest of the file, so I made it a single chain of inheritance up to "Admin", since you wanted everyone to get everything that the previous groups had. The "Owner" group gets absolutely everything (including nodes you don't know that you don't want it to have yet), so it also gets an "empty" inheritance like the "Member" group had.
Be Warned: Anyone in the "Owner" group can delete all the groups on the server, since they also get access to all the PermissionsEx Commands. Normally I recommend only giving permissions.*
to yourself (with /pex user Stormbow add permissions.*
, using your name instead of mine). If you want to remove this permission node from your "Owner" group, change the group to look like this:
Owner:
options:
prefix: '&6[&4Owner&6]&f '
default: false
build: true
inheritance: []
permissions:
- -permissions.*
- '*'
And one final note: you have a group called "memeber" which I couldn't tell if you wanted that to be some kind of "meme" related group, so I left it in the file. Someone probably meant to add those to the "Member" group, and just didn't spell it correctly, but I left it in the file and you can correct it as desired.
Test the above corrected file, and let me know if you have any additional issues you need help with.
It worked but now i have the issue of names for the donator ranks are not colored and it does not show the prefix's like [Donator] or [Vip] before their names either. It also now says [world] before a persons name now. The ranks themselves work though. I can set a person to a rank and they can use the permissions from that rank.
Excellent. We're moving in the right direction.
Next up, you need to configure your chat management plugin. In this case— EssentialsChat. Use this guide to get the prefixes and suffixes setup.
Also, look in the Multiverse folder and make sure prefixes are disabled in the Multiverse config.yml file.
I read through the guide twice and i'm having trouble understanding it. I made the chnages that are in the guide and that doesn't seem to have fixed it I also changed the prefixes for multiverse to false but every time i reload the plugin or restart the server it changes it back to true.
I managed to get rid of the [world] I tried disabling the prefix one more than this time it stuck....I'm convinced spigot likes to mess with me.
OK, let me see your console log from the moment you start the server until text stops printing to the screen and you see a message similar to "Done!".
And while you're at it, show me your most recent permissions.yml file and your Essentials config.yml file.
Permission https://pastebin.com/gbMaWVj2
the essentials pastebin considers it spam for some reason
fixed it
https://pastebin.com/cZkk0EMS
Corrected Essentials config.yml file: https://pastebin.com/i5WhjpFd
For the best results, be sure to stop the server before replacing your config.yml file with the filed linked above.
Console https://pastebin.com/rrsSKXuW
i'll check if that config works
This file should get all the prefixes displayed in-game, then you can work on adding Color Codes and Formatting Codes to lines 703-711 of the Essentials config.yml file, and the permissions.yml file.
The server console looks pretty good. Two errors remaining:
• ChestShop looks like it's outdated or not configured correctly ("you seem to not be using the Xerial SQLite driver. See ORMLite docs on SQLite: http://ormlite.com/docs/sqlite").
• You're missing the ProtocolLib plugin (which is a dependency of the "PAC.jar" plugin).
Getting closer. But now the donators have a slight issue. they have [member] their names. For example <[Donator]>Killer[Member] that's what it looks like for all Ranks except Owner
Yep. That's because you didn't give the Donator or other groups a suffix, but you did give Member a suffix.
Give Donators and others groups this:
suffix: '&r'
That will assign them a blank suffix, removing the Member suffix.
Alternatively, you could delete the line for the Member suffix.
The &r
is just a "reset" code, changing the color and formatting back to the default (white, with no underline, bold, etc.).