#If Function.

1 messages · Page 1 of 1 (latest)

warped zealot
#

Is there a way to add conditions to commands in Deluxemenu?
Like, if the person is above a certain level, he get's an extra reward.

wind grove
#

Requirements?

warped zealot
#

I mean

#

when they click the command

#

I want certain commands to work, and certain commands to not work, based on their permissions

wind grove
#

I don,t know i used to do that dunno if something changed

wind grove
#

Look at the docs

warped zealot
#

wait, let me show you example

#
  - '[close]'
  - '[message] &fYou completed this challenge!'
  - '[console] tokens give %player_name% %math_{edprison_variable_changeable_cblocks}*300%'

  # If player is above level 5, he gets an extra reward #
  - '[console] key give %player_name% astral 1'
#

something like this

#

I want 1 click to sort out rewards based on level, or other requirements

warped zealot
#

😑

#

Nevermind guys

#

Ig I'll just use my boring old method of making hundreds of items, xd

wind grove
#

Dude just make permission per level it’s way easier. And if your using luck perms its even easier

pallid vigil
#

deluxemenus has requirements, yes

wind grove
#

Then use it…

warped zealot
#

I have a plan in mind, to test it

#

dk how it'll turn out

pallid vigil
#

You can do this

#

there are success_commands

#

take a look at this example from my keyboard

#

You could easily replace the requirements with permission requirements to execute conditional extra commands

warped zealot
#

I was hesitant on doing with requirements for individual items because I have to make 1000+ Items. This thing saves all that and puts it all into 1 item