DungeonsXL icon indicating copy to clipboard operation
DungeonsXL copied to clipboard

Placeholder in Requirement

Open dellise26 opened this issue 4 years ago • 4 comments

Hello, i'm using this plugin for a long time and find it exclusive and impressive, so anyway thx. So here i'am because i want to use requirement on dungeon with placeholder api, it would certainly make everyone happy, and i was thinking of adding a custom message for each requirement with PAPI cause it would be ugly to see "You cannot enter this dungeon cause rpg.level is not 40" or something like that. Thx again and hope something will be done about this :)

dellise26 avatar Jan 26 '21 15:01 dellise26

So basically need a way to replace the requirement message. That makes sense to me, but what does this have to do with PAPI?

Sataniel98 avatar Jan 26 '21 18:01 Sataniel98

Instead of making a requirement for everything, why not be able to compare a placeholder with a value. For example i'm using MMOCore and i want to check the level of the player, to be done, a placeholder exist, so making something like "%mmocore_level% >= 40", and it would allow player superior or equals to 40 which can enter the dungeon. Is it understandable ? https://git.lumine.io/mythiccraft/mmocore/-/wikis/Placeholders

dellise26 avatar Jan 26 '21 19:01 dellise26

That means we'd need a parser for logical expressions. That would be a considerably bigger thing. Might be an option for the future, but nothing for the current milestone.

Sataniel98 avatar Jan 26 '21 20:01 Sataniel98

Yes indeed, it could be just an equals, but i don't think allowing just one value is .. mhhh not good, but not a problem to wait, i just find it quite useful to use placeholder

dellise26 avatar Jan 26 '21 20:01 dellise26