PermissionsEx

PermissionsEx

14M Downloads

Pex Help

dehaanjesses opened this issue · 176 comments

commented

I need help with pex prefixes. If you can help me go to ...

] Edit by Stormbow: Server address removed [.

commented

If you need help, post what you need help with as specifically as possible and I'll help you as best as I can.

I don't visit servers unless I absolutely have to, and advertising your server isn't allowed here unless it's absolutely necessary.

commented

If your prefixes are not working:

• Do you have a chat management plugin on the server? If yes, which one are you using?

commented

I use Essentials Chat

commented

Are you using "EssentialsChat" or "EssentialsXChat"? ("EssentialsChat" was discontinued at Minecraft 1.8, so it's important to be very specific here. You would need a Spigot server to run EssentialsXChat.)

Do you have Vault installed? (It's required for either EssentialsChat or EssentialsXChat to function properly.)

commented

I use EssentialsChat-2.x-SNAPSHOT

commented

What version of Minecraft are you running?

commented

1.8

commented

Do you have Vault installed on the server?

commented

And I do /pex group Owner prefix &f[&bOwner&f] but then when i type in chat it says [default] in front of my name

commented

Ok, you will need to install Vault.

Do that, test the server, and let me know how it went. :)

commented

Ok

commented

(The link to Vault is up above.)

commented

Have you edited the config.yml file inside the Essentials folder?

commented

Yes I did

commented

Ok now I have the Owner thing but 2 of them

commented

I only want 1

commented

It is set to Owner: '&c[{GROUP}]&r {DISPLAYNAME}&7:&c &b{MESSAGE}'

commented

Check the config.yml file in the Essentials folder. Make sure it's set to only display one.

If you're using the Multiverse plugin on the server, look inside that config file too because Multiverse also has chat management features which it shouldn't really have. You'll have to disable those. Multiverse is a common cause of double chat prefixes.

commented

And I don't have Multiverse

commented

It is set to Owner: '&c[{GROUP}]&r {DISPLAYNAME}&7:&c &b{MESSAGE}'

Ahhhh! That's why.

In EssentialsChat, the {DISPLAYNAME} variable is your Prefix+Username+Suffix combined.

To correct the double group name being displayed, you can either remove {GROUP} in the EssentialsChat config file or remove the prefixes that you have defined inside the permissions.yml file.

commented

And

commented

Oh ok

commented

How do I make a space between the prefix and my Username?

commented

Oh wait, I took the {GROUP} out and saved it and restarted my server and it still has it 2 Owner's

commented

If you're using the config.yml:

GroupNameHere: '[&5{GROUP}&r] {DISPLAYNAME}&r: {MESSAGE}'

If you're using the permissions.yml file:

prefix: 'GroupNameHere '

(Notice the space after GroupNameHere.)

commented

Oh wait, I took the {GROUP} out and saved it and restarted my server and it still has it 2 Owners.

Be sure to stop the server and start it again. The "restart" functionality of most servers isn't all it's cracked up to be.

commented

Ok

commented

In your case— being a 1.8 server —you can use the commands /ess reload and /pex reload while in-game to get these 2 particular plugins to reload. It's a bit faster than stopping and starting the server.

commented

Ok but I got the 2 Owner's to go way but the space, didn't show up

How did you add the space in? Show me your prefix entry.

commented

Ok but I got the 2 Owner's to go way but the space, didn't show up

commented

groups:
Owner:
options:
prefix: '&f[&bOwner&f]'
worlds:
'&a''':
options:
prefix: '''&f[&bOwner&f]'
'&a':
options:
prefix: '&f[&bOwner&f] '
members: {}
defoault: {}
schema-version: 1
users:
eb8c6eec-539d-48ca-a768-91f31f78a0a3:
permissions:
- '*'
group:
- Owner
options:
name: Lion048SB
I added the space for the 3rd "prefix"

commented

All of that &a stuff needs to be removed. Those are incorrect multiworld settings. Only the group itself gets a prefix setting.

commented

When does the 2nd &a end?

commented

Do I get rid of everything and paste that in?

commented

Here ya go— start from this file example.

You can see the complete file example, right here, if you want to see all the possible settings and a handful of groups pre-made. You can even use this example as the starting point for your server; the notes about Minecraft 1.9 can be ignored. (A 1.8 server doesn't have to have an inheritance section in every group, but it doesn't hurt at all to have them, and usually makes the file shorter.)

commented

So I would paste the 1st one?

commented

I corrected a typo in http://pastebin.com/Qf5keFWQ.

Yes, copy that one (it's the same as the link in this post) and paste it into your permissions.yml file. Save the file. Then type pex reload into your server console.

commented

ok let me try it.

commented

Ok it said "Erorr loading permissions file!"

commented

Whoops. The typo got you.

Reload this page: http://pastebin.com/Qf5keFWQ Copy that example. Paste it into your file. pex reload into the console.

commented

ok

commented

Ok it worked but when I make a new group, do I put a space?

commented

Yes

commented

Yep.

commented

Just like you see in the "Guest" group I made for you.

Add one blank space before that last apostrophe of the prefix setting.

commented

This isn't about pex but do you know how to set the server spawnpoint?

commented

Ok

commented

This isn't about pex but do you know how to set the server spawnpoint?

Since you're using Essentials, you have access to the /setspawn command. Type that in-game and you'll see what the options are for it. :)

commented

One final note:

If you add permissions to that Guest group by editing the permissions.yml file directly, be sure to delete the brackets (the [ ] ) to the right of permissions:. Those are just a placeholder until real permissions get added to a group.

commented

Wait, iy say unknown command

commented

It*

commented

Ok thanks

commented

What did you type, exactly?

/setspawn

is the in-game command.

setspawn

can't be used in the console as far as I know.

commented

I typed it exactly

commented

You typed this in-game:

/setspawn

and you were told it's not a command?

commented

Its said "Unknown command. Type "/help" for help.

commented

Do you have the main Essentials.jar file installed on the server?

commented

Yes

commented

Can you show me a screenshot of your plugins directory?

commented

Sure

commented
commented

I can click on it

commented

CraftBukkit 1.8 @ Java 8

commented

You have the "EssentialsX" .jar file on your server. You're literally using "EssentialsX" and not "Essentials" as I had originally thought.

Are you running a Spigot server?

commented

That may be part of the problem. You're using the Spigot server versions of Essentials ("EssentialsX") on a non-spigot ("Bukkit") server.

As you can see on this page, there's no official 1.8+ Bukkit or Essentials download.

commented

I use a online hoster

commented

I don't download plugins

commented

Yeah. The server host is supplying you with what is essentially an obsolete server wrapper ("Bukkit").

Do they have an option to give you a Spigot server?

commented

If I do that will my Bukkit Plugins not work?

commented

Yes

commented

Spigot is actually kind of like a child of Bukkit; they're kind of genetically related.

Since Bukkit is Spigot's daddy (they use the same basic genetics, or programming code), Spigot is "backward compatible" to Bukkit plugins and virtually all of the "Bukkit" plugins can be used on "Spigot" servers.

commented

Ok

commented

You can even run a Spigot 1.8 server, if you're very dedicated to running that specific version of Minecraft.

Minecraft is currently up to 1.11.2 and PEX 1.23.4 (which you're using) works with that version also.

(PEX 1.23.4 works with Minecraft 1.7.9 through 1.11.2, so far.)

commented

Will it work with version 1.8 of Minecraft?

commented

Will it work for 1.9?

commented

Yep. The only important thing to know about 1.9 and later is that PEX needs an inheritance section in every group. That's when Line 19 of this example for PEX comes into consideration.

Other than that, your permissions.yml file doesn't really change from what you currently have.

(And neither does your EssentialsX config.yml file.)

commented

Will every thing work if I stay with 1.8?

commented

Well, as we're seeing so far, you're not getting access to the EssentialsX command /setspawn, so a switch to Spigot appears to be a good idea for you— especially since you're right on the very edge of that "no official downloads" issue we talked about a little, earlier..

commented

I'm just trying to avoid later versions because I don't understand the inheritance part

commented

Inheritance is actually quite simple. Let's take a look at my example file and I'll explain it to you.

In the above example, we see that the "Guest" group has a permission node called modifyworld.* (line 12) that lets them do everything there is in the game, thanks to the plugin called Modifyworld. The members of the "Guest" group can move, talk, craft items, pick up items, carry items, hold items, use items on other items/blocks, and interact with everything in the game.

Now, let's look at the "Member" group. Since the "Member" group has an inheritance set to "Guest" (lines 29 and 30), the "Member" group users also get that modifyworld.* permission node that the "Guest" group has, and all of the other permission nodes that "Guest" gets.

If a group (Guest) has something that the other group (Member) does not want or that we don't want them to have, we use something called a "negation" to remove that permission. For example, since we do not want "Member" group users to have access to the "Guest" group's kit, we negate that permission at the top of the "Member" group's permission section (line 32) and we give the "Member" group users their own special kit— essentials.kits.member —on line 33.

There are also actually commands to do all of this stuff while being in-game, but it's typically easier and faster to enter all of this information directly into the permissions.yml file "manually", like you and I have done with previous changes we made to your file.

commented

Does all of that make sense to you? Do you understand inheritances a little better?

They're not so scary, are they? :)

commented

You would have to define them.

commented

Would it do the inheritances automatically? Or would I have to put it in manually?

commented

You've come this far in learning how to run a Minecraft server; don't stop learning now. :)

commented

Oh because I am not too good at doing that type of stuff

commented

I just need a guide line to go off of

commented

You have the example link and this post. (And, of course, you can always ask me questions here.)

commented

Do you have to have a suffix?

commented

I used to have much better guides for just about everything related to PEX 1.x, but since the Bukkit website was reorganized without warning and they disconnected/deleted all of the plugin forums, all of those posts are missing in action now.

commented

Nope. Any of the "options" settings can be blank/empty.

suffix: ''

(2 apostrophes, right next to each other, with no space in-between.)

commented

I only included the Suffix in the example so people could see where to add that extra blank space (like the one that you and I fixed for you earlier).

commented

Can I use that but just change a couple of the settings to fit me?

commented

Absolutely.

I highly recommend deleting all of the fake permission nodes that I put in there— the permission.node.one type stuff.

commented

Ok

commented

Thank you!

commented

Would you like to see that example customized to what we have for your server so far?

commented

Sure

commented

Here ya go! http://pastebin.com/eWnaiiq3

This file is a perfect starting point for you, on a 1.9 and higher server. :)

(On a 1.7.2 through 1.11.2 server, really.)

commented

Ok I just converted to a Spigot 1.9 server