how to add requirements?
this is an example I saw on how they work but its not working. players are able to puchase the item without needing money or votes
left_click_requirement: expression: '%vault_eco_balance% > 10000' expression: '%VotingPlugin_alltimetotal% > 20'
left_click_requirement: expression: '%vault_eco_balance% > 10000' expression: '%VotingPlugin_alltimetotal% > 20'
113 Replies
u forgot to add type
-.-
also do >=
not just >
thank you. where would I add type?
https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#javascript read docs
Requirements
Everything about DeluxeMenus requirements!
š
Requirements
Everything about DeluxeMenus requirements!
legit deluxemenus has a wiki
i seen the wiki i was just confused about how requirements work
soz
you would have seen type: javascript
but its fine
just read it for next time,
it says type: TYPE in wiki
so I would replace that with?
javascript?
yes
as the example shows
my bad I clicked on mavins link and it took me to the top of the wiki page
maven
i understand now thanks guys
oh
type: javascript
expression: '%vault_eco_balance% >= 100'
this would work too ?
yes
just make sure that each requirement has its own id
okay tyty
you guys are awesome
okay i see
i can basically name it whatever i want correct?
yeah
they just have to be different names
as long as its just one word
so no spaces in it
if you want spaces then use something like underscore _
okay so its still not working for some reason
you gave it left click commands right?
yes
use `
not '
what the
i had to switch keyboards for a sec my main one doesnt have that key lol
theres a quote next to leftclick commands
also when you say it doesnt work, which way
-.-
well that means its working
oh
wait the requirement isnt
the permission isnt working
but wheres the requirement here
and the requirement
i have 0$ and im able to purchase any rank
first make sure you arent op and dont have the * permission
are you fucking kidding me
i did
what...
oh
i spoonfed you the answer
you legit asked if this one was also correct
how did you end up splicing the two together?
type javascript requires an expression, which you showed that you understood
I took the string equals format because it looked like the format you gave me but since its javascript I need to use ' ' right?
I mixed them together is what happened
yes
which is why it doesnt work
im learning :cat:
theres a difference between learning and being blind
i am pretty blind so that could be a reason too
so one question though what do string equals do?
the wiki legit tells you what it does
string equals string
text equals text exactly
hm i dont understand but its okay javascript is what I need to use anyways
okay..its still not working..
you could legit get that to work by replacing the word javascript with >=
and remove the quotes from both input and output
okay
?
...
so I cant use the format you gave me I have to use that format that is the example.?
remove the quotes from input and output
i will try it
do the same for both requirements
I did and still the same thing
im able to purchase the rank without having money
post the full item
i hate my life
what?
he forgot requirements:
yeah
wym?
i forgot the
requirements:
between left_click_requirement:
and the actual requirements
see hereoh
okay so I need to add in requirements:
yes
remember to keep valid formatting
let me restart my server maybe its bugged because its not working still
id just delete the server and give up at this point
so now the /ranks is broken I cant pull up the menu
well what does console say about it?
and it doesnt say anything else but that?
correct
post the full thing to https://paste.helpch.at/
i ment the menu
oh my bad
the full menu? or just the items
menu
ok
https://paste.helpch.at/itagoneves.lua
it broke after I added in the requirement:
ive been working on '1'
I pasted the menu into yaml parser and this is the error it threw
went and had a quick look at one of the example menus
why the fuck doesnt the wiki tell you they have to be in quotes
no worries. I went ahead and just formatted it back to type: javascript to get it to work rq and im still able to purchase any ranks
im so confused bro
it should be working?
ig go join helpchat and ask there
cus i cba to try to troubleshoot it more
yeah i understand
thanks for trying to help. you guys really need a donate section
id be happy to
we are all independent
;D
some of us do commisions for stuff tho
thats good cuz you guys do a lot and reply a lot faster helpchat
one last thing why would it be throwing this in console when I purchase the rank?
which part?
the last part?
Error:
because ur using the wrong placeholder for player in that adjustclaimblocks
because u cant have less than 0 dollars?
oh
duh
lol
(well essentials does have something called debt)
but eh
so the adjustclaimblocks is also the wrong placeholder to give players more claim blocks?
if your only testing the first item why is it attempting to remove 100000
not a fan personal fan of it either
when the first item is 5000
i tested it on all the ranks
well its easy to disable
like 2 seconds to disable
i disabled a while ago
im gonna try to test it on my main server since I have the ranks setup. I hope thats not what it is..
you have downloaded the vault extension right?
and the votingplugin one
yes
yes
my test server i dont have the ranks setup though so idk maybe that why im able to purchase them
this is what happens in console on my main server now
same config as the one we've been working on
this shows up when I do /dm reload
ill quit bothering you guys about it I know your busy helping others. I appreciate the support from both of you. Im gonna take it over to Helpchat now
did u ever try just this?
tbh i just setup a test menu and requirements just dont work at all
they have worked fine for me in the past
weird
im not sure if its just the deluxemenus version im using
imma try 1.14.0 dev builds and see if it fails aswell or not
nope it just doesnt work
its starting to really piss me off aswell
so I got in contact with some and he told me to use this format
thats
what i told u to do at the start
-.-
ikik
i liked mavens format better though and he did tell me it would work :3
"this would work too?" yes
but yeah
not sure why he even gave the other example
when docs says to do this
hm i got it to work
im dense, added an s on the end of left_click_requirement
if this works
this works
okay one sec
it works :meow:
thank you thank you thank you
np