šŸ”‘ PermissionsEx v2.0 [API 5]

I will use it on one group but I will be able to add the users with some rank some extra features, like more homes, some extra money, etc ā€¦ so I ask and try to understand the ranks here. By Bukkit was it fully others.

Yes. Those are extra permissions, and thatā€™s how parents work. For the money, youā€™ll have to use an economy plugin just as in Bukkit. Homes shouldnā€™t be a problem if any plugin has done like Essentials did and implemented number of homes as a permission (for example: essentials.sethome.multiple.[keyword], where [keyword] is defined by you in the Essentials config).

Thank you Lemonous!!

Your EDIT was most helpful. I was able to get the ladder working, however there are a couple of things that I have discovered. When you add a rank at 0, 1, 2, etcā€¦ The numeric order must remain. Example, if you add 0, 1, 2, then add your OP level group as level 10, anticipating that there will be a few other ranks youā€™ll add later, it will not get added to the ladder.

Also, you can only have 1 ladder, so if you use the /pex rank default add 0 group0 command, your ladder will be called default. I was not able to add another ladder called random, or anything like that, you have to destroy the first ladder to create a new one. Makes sense though, since you shouldnā€™t need more than one ladder in a single world.

Thank you for the permission explanation as well, I also think it is backward, which is why I was confused, I didnā€™t see your reply before I posted that first one. :smile:

Now that my permissions are mostly in order, Iā€™m ready to start adding other mods! Thank you all for the information and the help!

ALSO:
I had to reload pex after adding each rank of the ladder or the settings didnā€™t seem to apply.

1 Like

Nice to see Pex being ported to Sponge.

Iā€™ve tried the latest dev but couldnā€™t get the meaning of the command format. Is there some quick examples or a wiki explaining what ā€˜subjectā€™ means for Pex 2.0?

This might help too:

Hi there!
Iā€™ve decided to make a sponge server yesterday and iā€™ve got some issues with it.
Everything is discribed in movie that iā€™ll post below but now iā€™ll write about it.
Iā€™ve installed a few plugins including pex which configuration after about 5 years with bukkit was damn hard especially because iā€™ve wasted hour to find any command list for this one (editing permissions in server files looks werid compared to bukkitā€™s pex) xD
ANYWAY after that all and a few servers restarts pex wont load. I mean i canā€™t find any error in console about pex loading but then when i try to use any pex command in console or on server it says there is no such a command.
I was a bit confused (maybe because it was 4th after midnight lol) and decided to end work on server for yesterday.
Today iā€™ve tied installing any other pex version (ofc sponge version) but it wasnā€™t effective (everything is still like before)

^The video that i was talking about before. Looking for any help because i canā€™t play without bukkitlike plugins and my and my friends really want to run some mods on our server ;-;
Greetings!

I use this plugins, so I can use these extras, but I donā€™t know how to combine it with ranks. I have it now only set with groups, but I will use it with ranks too, if it possible.
For example: I have player who reach higher rank after reaching some conditions so I will give him some extras, like some money, add an extra home etcā€¦

Server runs without errors, but after entering the game in the client writes an error: (pastebin)
(Sponge 1.8-1499-2.1DEV-630, plugins: SpongeEssentialCmds, TotalEconomy, Flexiblelogin, WorldEditForge, NEI, CodeChickenCore)

As far as I know, ranks in PEX only give more/fewer permissions, and perhaps a prefix/suffix. If you want to give more homes, you should see whether thatā€™s possible with permissions (like Essentials did for Bukkit). PEX is not and has never been able to run commands for you automatically. You will most likely need something along the lines of the Bukkit plugin OnTime.

@Ekib: Try updating to a newer version of SpongeForge, looks like there was a change in player leave/join handling in Build 633. Iā€™m not 100 % sure if thatā€™s relevant, but Iā€™d recommend updating either way :slight_smile:

I use Essentials and economy and they add these as permissions to PEX.
But what I donā€™t know is how to use it in PEX with ranks.
The Ranks are fully new for me and donā€™t know how to use it with one group of player and permissions that are possible to set.
Good will be not only explanation, but to have the possibility to see the config file where are ranks set for one group and how they bring any changes to the group.

I donā€™t have time to make an example permissions file for you, but Iā€™ll do my best to explain.

Say you have two groups, Group1 and Group2. You want Group1 to have access to more homes than Group1. To do this, you define two limits in the Essentials configuration file, for example lowlimit = 1 and highlimit = 10. You can then give these limits to the ranks by giving essentials.homes.multiple.lowlimit to Group1 and essentials.homes.multiple.highlimit to Group2. This way, anyone in Group1 will have a limit of 1 home, and anyone in Group2 will have a limit of 10 homes.

So far, so good, but this isnā€™t using ranks yet.

To use ranks, you make a rank ladder and add the two groups with the commands /pex rank [laddername] add Group1 and /pex rank [laddername] add Group2, in that order. This will let you use the /pex promote [playername] [laddername] command to move someone from Group1 to Group2, and /pex demote [playername] [laddername] to move someone from Group2 to Group1. This promotion/demotion mechanic is the only thing ranking adds in relation to what you want (or, at least, how I understand that) - the rest is plain permissions and inheritance.

After sponge build 630 does not work the lever and buttonā€¦ I have two servers, main, work on Sponge 1.8-1499-2.1DEV-630 and second for tests. Test server worked on latest Sponge! Now it is 1.8-1499-2.1DEV-642, it gives the same errorā€¦

Anyone able to help me? Iā€™m trying to add 5 groups but I really donā€™t understand what I have to do, itā€™s my first time working with plugins. I want to learn all of this so I donā€™t need to keep asking for everything.

Examples (permissions.json): http://pastebin.com/5UnU9nkx
Examples (many groups): http://pastebin.com/8SAsJ8BG
Commands: Home Ā· PEXPlugins/PermissionsEx Wiki Ā· GitHub
All can be found in the first postā€¦

1 Like

I have now set fixed amount of homes for each group: ā€œhomesā€: ā€œ10ā€

If I understand you correctly, I need to set all in groups and then over ranks switch these groups?
And how works the homes limits? When I set in one group Lowlimit and in second group Highlimit, how it will be then added home for next rank? Is it possible to do all with one group?

Example:
I have groups: Player, Builder, Moderator, etcā€¦
I will for group Player use these Ranks to reward the players there.
I will do 3 ranks: Player, Warrior and Captain and then I will add them these rewards:
Player - $100, 1 home
Warrior - $200, 2 homes
Captain - $500, 5 homes

Instead of "homes" = "10", that place in the config should contain:

"warrior" = "2"
"captain" = "5"```
And so on for all your ranks that you want to give more homes (If that gives an error, add a comma after "1" and "2")

Then you give Player the permission `essentials.homes.multiple.player`, and you gove Warrior the permission `essentials.homes.multiple.warrior` and so on for each of your ranks.

It is not possible to use PermissionsEX to give money. You must find another plugin for that.

The permissions should be added to the ranks section?
And when I put ā€œplayerā€ = ā€œ1ā€ how it will the system know that it goes to the homes?

it should looks like these than:

ā€œgroupā€: {
ā€œPlayerā€: [
{
ā€œpermissionsā€: {
ā€œtpa.useā€: 1,
ā€œtpa.acceptā€: 1,
ā€œtpahere.useā€: 1,
ā€œtpadeny.useā€: 1,
ā€œminecraft.command.tpā€: 1
},
ā€œoptionsā€: {
ā€œplayerā€ = ā€œ1ā€,
ā€œwarriorā€ = ā€œ2ā€,
ā€œcaptainā€ = ā€œ5ā€,
ā€œstartingbalanceā€: ā€œ100ā€
}
}

.
.
.

"schema-version": 4,
"rank-ladders": {
    "warrior": [
        "index:2",
        "group:Player",
        "essentials.homes.multiple.warrior": 1
    ],
    "captain": [
        "index:3",
        "group:Player",
        "essentials.homes.multiple.captain": 1
    ],
    "player": [
        "index:1",
        "group:Player",
        "essentials.homes.multiple.player": 1
    ]
}

So that rank ladders section you posted is not exactly valid json, and also not correct for PEX. Take a look at https://github.com/PEXPlugins/PermissionsEx/blob/master/permissionsex-core/src/test/resources/ninja/leaping/permissionsex/backend/file/test3to4.post.json for an example of a simple permissions file.

Can anyone tell me if Iā€™ve done anything wrong in the json? I think itā€™s all good but Iā€™m not exactly the best doing this :stuck_out_tongue: http://pastebin.com/Cc7YmLuu