Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arguments not working per-item #23

Open
Danyyy3l opened this issue Nov 9, 2024 · 8 comments
Open

Arguments not working per-item #23

Danyyy3l opened this issue Nov 9, 2024 · 8 comments

Comments

@Danyyy3l
Copy link

Danyyy3l commented Nov 9, 2024

Please help me with this:
I made a voucher using %args[]% to get different kinds of kits/ranks etc.. on the same voucher.

I made it so that when i type /av give [USERNAME] kit 1 Inferno
it will give me one inferno kit, and it works as expected, BUTTTTT:

When I give myself another voucher for a different kit, for example Warrior - and then I claim one of those 2, - the %args[1]% of the previous voucher also gets applied to the second one.
EXAMPLE: I give myself a voucher for Inferno, Warrior, Barbarian and Dragon kit --- If I claim the Warrior kit first, any other kit out of the remaining 3 that i claim will give me the Warrior kit again.
It's like the %args[1]% doesn't stay with that item.

VERSION: 2.3.3-SNAPSHOT

heres that voucher config:
(btw theres also another %args[2]% - thats just for changing the color of the kit name)
also let me know if you need any other information! Thank you.

kit:
item:
material: EMPTY_MAP
damage: 0
lore:

  • ''
  • 'one-time <dark_gray>[<%args[2]%>%args[1]%<dark_gray>] Kit!'
  • ''
  • 'Type /kit to view all kits!'
    glow: true
    name: '<dark_gray>[<%args[2]%>%args[1]%<dark_gray>] Kit (One-Time)'
    actions:
  • '[console] ae givegkit %player_name% %args[1]%'
    settings:
    messages:
    receive: 'You have received a %args[1]% Kit!'
    redeem: 'You just unpacked a %args[1]% Kit!'
    confirmation:
    enabled: false
    limit:
    enabled: false
    type: GLOBAL
    limit: 10
    message: This voucher can't be used anymore
    permissions:
    whitelist:
    message: You don't have access to use this voucher
    list: []
    blacklist:
    message: You can not use this voucher because you are blacklisted!
    list: []
    worlds:
    whitelist:
    message: You can't use this voucher in your current world <dark_gray>(</dark_gray>{world}<dark_gray>)
    bulkActions:
  • '[console] ae givegkit %player_name% %args[1]%'
@iGabyTM
Copy link
Owner

iGabyTM commented Nov 10, 2024

I'll look into this asap. What's your game version?

@Danyyy3l
Copy link
Author

I'll look into this asap. What's your game version?

1.8.9 server

@Danyyy3l
Copy link
Author

Hey, any updates on this? Did you manage to replicate the issue im having?
If you need any other info just ask.
Id love to use that thing for multiple ranks/kits etc.. for my next season on my server so I don't have to edit the rewards etc into multiple vouchers and further complicate it...

@iGabyTM
Copy link
Owner

iGabyTM commented Nov 23, 2024

I'll try to find some time this weekend. I apologise for the delay.

@iGabyTM
Copy link
Owner

iGabyTM commented Nov 24, 2024

I've just tested the plugin on paper 1.21 and I can't replicate this issue. My guess is that it is an issue caused by 1.8.9 ...

@Danyyy3l
Copy link
Author

I've just tested the plugin on paper 1.21 and I can't replicate this issue. My guess is that it is an issue caused by 1.8.9 ...

Is it possible for you to test and fix it on 1.8.9? I think this is a pretty major issue, because I basically have to make a separate voucher for everything, and even entirely not possible for some things for example, if i wanted to give $542,213 money to someone with a voucher, id need to make a dedicated voucher for it for that specific amount.

@iGabyTM
Copy link
Owner

iGabyTM commented Nov 25, 2024

I sent you a jar via BuiltByBit @Danyyy3l

@Danyyy3l
Copy link
Author

replied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants