1

I added crates and I wrote in the commands /lp user %player% parent set and the rank that he wins, but I realised and then tested. The problem with that is when I have higher rank it will make it lower like if I have rank 1 and I get rank 2 it will rank up me to 2, but if I have rank 3 it will also put me to 2 so I lose rank.

Is there a way to put the lp user command in a item, so the players don't lose the rank? And if with a plugin, can you suggest me one? Also something common happens with the kits, if it automaticly gives the player the kit, but everything in the inventory disappears, so I want to put that command in a item too.

I also thought about making a spot that they can get automatically teleported and get the rank and automaticaly leave, but they can tp other players so everyone can get the rank by just one guy.

1 Answer 1

1

You can use the command /lp user %player% parent add <group> and LuckPerms will add the group on top of the player's existing groups. For example, if the player has rank 1, when the command is run they will be given rank 2, which means they will have both rank 1 and 2.

I'm not sure what you mean by putting a command in an item - do you mean running a command when a player right clicks the item in their hand? If that is what you wish to do, I suggest using the MyCommand plugin. You can run commands through items, blocks and more.

What plugin are you using to give the player a kit? Most plugins like EssentialsX don't clear the player's inventory, that is unusual behavior.

5
  • 1
    I realized that every time I stop/reload/restart the server the commands in the item are resetting too. Is there a way to fix it or should I not stop the server/should I be setting it manually every time I start the server? My cmd plugin runs in the latest version of 1.8.9. Sep 14, 2021 at 13:14
  • Huh, that's strange. How are you binding the commands to the item? According to the documentation, you should use /mycmd-itemset.
    – 65_7a
    Sep 15, 2021 at 1:28
  • 1
    yeah thats what i am using but they are reseting is this a setting in the config or something like that Sep 15, 2021 at 9:34
  • I'm not sure why this is happening. Could you try running /mycmd-itemset on after you start the server? You might have to run this every time.
    – 65_7a
    Sep 15, 2021 at 11:41
  • 1
    okay problem solved i just have to type 3 commands every reload i thought i have to change all the crates from the start every time thanks for your time Sep 15, 2021 at 19:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .