Hi, I have my own enchant menu where you can purchase enchantments that you cant normally get, and since for some reason I cant get them on weapons through books with all right settings allowed I chose to do it through commands, the problem is that normally player cant cast command /enchant so In deluxemenus I give them the right permission for it with [givepermission], then they can get the enchantment and then I try to remove the permission with [takepermission] so they cant after that use /enchant in chat, but it doesnt work and they keep the permission, any idea why and how to fix it?
#takepermission tag not working for me
1 messages · Page 1 of 1 (latest)
try [removepermission]
I fixed it with more brute way, but thanks for the idea, if it really is [removepermission] then deluxemenu wiki forgot to change it
👍🏼
It is actually just takepermission. You could try adding a delay of 1 tick to the takepermission action tho. DeluxeMenus doesn't guarantee the order in which the commands are executed so it could be executing the takepermission first.
the delay would look something like this:
- '[takepermission] essentials.enchant<delay=1>'
I used delays in my own way too
as I said it was more brute way but the only one I could think of at the time that actually worked
since you have luckperms I'd recommend using temporary perms, in case of any weirdness with deluxemenus delay🤷♂️
just fyi
that's actually pretty cool, could be used to avoid unnecessary bugs, thanks I'll look into that
why is the [refresh] there?..
good question, the part of the menu made a friend of mine, hes working on the server too and he puts it everywhere where is any sort of transaction, he says its to prevent bug abuse and such