Advertisement
asdasrastrusuisa

check.sk

Sep 22nd, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. variables:
  2. {coins.player} = 0
  3.  
  4. command /storebottle <amount>:
  5. permission: coins.store
  6. usage: &d/storebottle <amount> &f(You can only store coins up to 50 per book in integers of 5!)
  7. trigger:
  8. if {coins.%player%} is greater than or equal to arg-1:
  9. if arg-1 is equal to 5:
  10. remove arg-1 from {%coins.player%)
  11. give player book named "&dCheck" with lore "%arg-1%"
  12. send "&fYou made a check with &d%arg-1% coins on it"
  13. else:
  14. if arg-1 is greater than or equal to 10:
  15. remove arg-1 from {%coins.player%)
  16. give player book named "&dCheck" with lore "%arg-1%"
  17. send "&fYou made a check with &d%arg-1% coins on it"
  18. else:
  19. if arg-1 is greater than or equal to 15:
  20. remove arg-1 from {%coins.player%}
  21. give player book named "&dCheck" with lore "%arg-1%"
  22. send "&fYou made a check with &d%arg-1% coins on it"
  23. else:
  24. if arg-1 is greater than or equal to 20:
  25. remove arg-1 from {%coins.player%}
  26. give player book named "&dCheck" with lore "%arg-1%"
  27. send "&fYou made a check with &d%arg-1% coins on it"
  28. else:
  29. if arg-1 is greater than or equal to 25:
  30. remove arg-1 from {%coins.player%}
  31. give player book named "&dCheck" with lore "%arg-1%"
  32. send "&fYou made a check with &d%arg-1% coins on it"
  33. else:
  34. if arg-1 is greater than or equal to 30:
  35. remove arg-1 from {%coins.player%}
  36. give player book named "&dCheck" with lore "%arg-1%"
  37. send "&fYou made a check with &d%arg-1% coins on it"
  38. else:
  39. if arg-1 is greater than or equal to 35:
  40. remove arg-1 from {%coins.player%}
  41. give player book named "&dCheck" with lore "%arg-1%"
  42. send "&fYou made a check with &d%arg-1% coins on it"
  43. else:
  44. if arg-1 is greater than or equal to 40:
  45. remove arg-1 from {%coins.player%}
  46. give player book named "&dCheck" with lore "%arg-1%"
  47. send "&fYou made a check with &d%arg-1% coins on it"
  48. else:
  49. if arg-1 is greater than or equal to 45:
  50. remove arg-1 from {%coins.player%}
  51. give player book named "&dCheck" with lore "%arg-1%"
  52. send "&fYou made a check with &d%arg-1% coins on it"
  53. else:
  54. if arg-1 is greater than or equal to 50:
  55. remove arg-1 from {%coins.player%}
  56. give player book named "&dCheck" with lore "%arg-1%"
  57. send "&fYou made a check with &d%arg-1% coins on it"
  58. else:
  59. send "&cYou do not have enough coins to do that, or amount you want to withdraw is not a multiple of 5!"
  60.  
  61. on right click with book:
  62. if name of player's item contains "Check":
  63. if lore of player's held item is "5":
  64. add 5 to {coins.player}
  65.  
  66. on right click with book:
  67. if name of player's item contains "Check":
  68. if lore of player's held item is "10":
  69. add 10 to {coins.player}
  70.  
  71. on right click with book:
  72. if name of player's item contains "Check":
  73. if lore of player's held item is "15":
  74. add 15 to {coins.player}
  75.  
  76. on right click with book:
  77. if name of player's item contains "Check":
  78. if lore of player's held item is "20":
  79. add 20 to {coins.player}
  80.  
  81. on right click with book:
  82. if name of player's item contains "Check":
  83. if lore of player's held item is "25":
  84. add 25 to {coins.player}
  85.  
  86. on right click with book:
  87. if name of player's item contains "Check":
  88. if lore of player's held item is "30":
  89. add 30 to {coins.player}
  90.  
  91. on right click with book:
  92. if name of player's item contains "Check":
  93. if lore of player's held item is "35":
  94. add 35 to {coins.player}
  95.  
  96. on right click with book:
  97. if name of player's item contains "Check":
  98. if lore of player's held item is "40":
  99. add 40 to {coins.player}
  100.  
  101. on right click with book:
  102. if name of player's item contains "Check":
  103. if lore of player's held item is "45":
  104. add 45 to {coins.player}
  105.  
  106. on right click with book:
  107. if name of player's item contains "Check":
  108. if lore of player's held item is "50":
  109. add 50 to {coins.player}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement