Category: YML
Suggested name: None
What I want:
I need a skript that would keep randomly generated keys (that can be obtained on random generator websites) inside of a YML file. When player would use the command /redeem
i.e /redeem ADWAD098ODA982;
It would remove the used key from the yml and give the player the reward from said key.
The yml file would look something like this:
Reward1:
Keys:
ab252cefghijkl
aw23423awdawd
awdwafaf23423aga
Reward2:
Keys:
ada34535wdawd
awd23423aawdd
Ideas for commands:
/key add (key) (reward)
/redeem (key)
Ideas for permissions:
randomname.addkey
randomname.redeem
When I'd like it by: A reasonable time
Suggested name: None
What I want:
I need a skript that would keep randomly generated keys (that can be obtained on random generator websites) inside of a YML file. When player would use the command /redeem
i.e /redeem ADWAD098ODA982;
It would remove the used key from the yml and give the player the reward from said key.
The yml file would look something like this:
Reward1:
Keys:
ab252cefghijkl
aw23423awdawd
awdwafaf23423aga
Reward2:
Keys:
ada34535wdawd
awd23423aawdd
Ideas for commands:
/key add (key) (reward)
/redeem (key)
Ideas for permissions:
randomname.addkey
randomname.redeem
When I'd like it by: A reasonable time