-
Notifications
You must be signed in to change notification settings - Fork 60
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
How do you add prices to classes #309
Comments
use the doCommands to charge players. edit /plugins/BattleArena/classes.yml Here's an example: classes:
Vector:
displayName: "&1Vector"
items:
- 2256: 1 # record_13.png
- 2257: 1 # Colt Handgun - record_cat.png
- 402: 2 # M67 Grenades
- 345: 1 # Compass for directions
- 295: 64 # Ammo = Seeds
- 295: 64 # Ammo = Seeds
enchants:
- speed:2:900
doCommands:
- console money take player 100 Except substitute
|
How would i make it check to see if the player has enough money ? what if they have less then the amount i dont want them to be able to have the class if they do. |
also what do i put for the docommand |
Good point about not having enough money... That will have to be fixed. As far as the specific command to take money: I'm not sure. It would probably depend on what economy plugin that you're using. The general form would be this: Here are some possible future options: classes:
Vector:
displayName: "&1Vector"
items:
- 2256: 1 # record_13.png
- 2257: 1 # Colt Handgun - record_cat.png
- 402: 2 # M67 Grenades
- 345: 1 # Compass for directions
- 295: 64 # Ammo = Seeds
- 295: 64 # Ammo = Seeds
enchants:
- speed:2:900
doCommands:
- console money take player 100
preReqs:
options: [money=100]
cost: 100
refund: 90 What do you think ? |
i like the preReqs option i think people will like to see that i also think people will like a refund option. I really hope you add thes options in so i can use on my server. Also the docommand is not working for me for some reason. Its not taking money from players im using iconomy for the money. I think you should just add a price option to the classes. |
I fixed the money issue but now we are trying to give items custom names when there enchanted. Is there a way to do that ? |
Some one please help. How can i make so each class has a set price to buy.
The text was updated successfully, but these errors were encountered: