Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {coins.player} = 0
- command /storebottle <integer>:
- permission: coins.store
- usage: &d/storebottle <amount> &f(You can only store coins up to 50 per book in integers of 5!)
- trigger:
- if arg-1 is greater than 50:
- send "&cMust be less than 50"
- if {coins.%player%} is greater than or equal to arg-1:
- if arg-1 is equal to 5:
- remove arg-1 from {coins.player}
- give player book named "&dCheque" with lore "%arg-1%"
- send "&fYou made a cheque with &d%arg-1% coins on it"
- else:
- if arg-1 is greater than or equal to 10:
- remove arg-1 from {coins.player}
- give player book named "&dCheque" with lore "%arg-1%"
- send "&fYou made a cheque with &d%arg-1% coins on it"
- else:
- if arg-1 is greater than or equal to 15:
- remove arg-1 from {coins.player}
- give player book named "&dCheque" with lore "%arg-1%"
- send "&fYou made a cheque with &d%arg-1% coins on it"
- else:
- if arg-1 is greater than or equal to 20:
- remove arg-1 from {coins.player}
- give player book named "&dCheque" with lore "%arg-1%"
- send "&fYou made a cheque with &d%arg-1% coins on it"
- else:
- if arg-1 is greater than or equal to 25:
- remove arg-1 from {coins.player}
- give player book named "&dCheque" with lore "%arg-1%"
- send "&fYou made a cheque with &d%arg-1% coins on it"
- else:
- if arg-1 is greater than or equal to 30:
- remove arg-1 from {coins.player}
- give player book named "&dCheque" with lore "%arg-1%"
- send "&fYou made a cheque with &d%arg-1% coins on it"
- else:
- if arg-1 is greater than or equal to 35:
- remove arg-1 from {coins.player}
- give player book named "&dCheque" with lore "%arg-1%"
- send "&fYou made a cheque with &d%arg-1% coins on it"
- else:
- if arg-1 is greater than or equal to 40:
- remove arg-1 from {coins.player}
- give player book named "&dCheque" with lore "%arg-1%"
- send "&fYou made a cheque with &d%arg-1% coins on it"
- else:
- if arg-1 is greater than or equal to 45:
- remove arg-1 from {coins.player}
- give player book named "&dCheque" with lore "%arg-1%"
- send "&fYou made a cheque with &d%arg-1% coins on it"
- else:
- if arg-1 is greater than or equal to 50:
- remove arg-1 from {coins.player}
- give player book named "&dCheque" with lore "%arg-1%"
- send "&fYou made a cheque with &d%arg-1% coins on it"
- else:
- send "&cYou do not have enough coins to do that, or amount you want to withdraw is not a multiple of 5!"
- on right click with book:
- if name of player's held item contains "Check":
- if lore of player's held item is "5":
- add 5 to {coins.player}
- send "&dYou have deposited a check"
- on right click with book:
- if name of player's held item contains "Check":
- if lore of player's held item is "10":
- add 10 to {coins.player}
- send "&dYou have deposited a check"
- on right click with book:
- if name of player's held item contains "Check":
- if lore of player's held item is "15":
- add 15 to {coins.player}
- send "&dYou have deposited a check"
- on right click with book:
- if name of player's held item contains "Check":
- if lore of player's held item is "20":
- add 20 to {coins.player}
- send "&dYou have deposited a check"
- on right click with book:
- if name of player's held item contains "Check":
- if lore of player's held item is "25":
- add 25 to {coins.player}
- send "&dYou have deposited a check"
- on right click with book:
- if name of player's held item contains "Check":
- if lore of player's held item is "30":
- add 30 to {coins.player}
- send "&dYou have deposited a check"
- on right click with book:
- if name of player's held item contains "Check":
- if lore of player's held item is "35":
- add 35 to {coins.player}
- send "&dYou have deposited a check"
- on right click with book:
- if name of player's held item contains "Check":
- if lore of player's held item is "40":
- add 40 to {coins.player}
- send "&dYou have deposited a check"
- on right click with book:
- if name of player's held item contains "Check":
- if lore of player's held item is "45":
- add 45 to {coins.player}
- send "&dYou have deposited a check"
- on right click with book:
- if name of player's held item contains "Check":
- if lore of player's held item is "50":
- add 50 to {coins.player}
- send "&dYou have deposited a check"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement