ArtzifyHD

karma

Aug 21st, 2017
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.83 KB | None | 0 0
  1. options:
  2. Karma.Prefix: &a&lKarma &7&l// #Use this to change the prefix of the messages
  3.  
  4. command /aboutkarma: #Don't remove this! You don't have to let your players know about this command... It's only telling players about my social media.
  5. trigger:
  6. send "&a&lKarma is a plugin created by GamingGeek!" to player
  7. send "&f&lCheck him out on social media:" to player
  8. send "&b&lTwitter &f&l- &b&l@GamingGeekHD" to player
  9. send "&c&lYouTube &f&l- &c&lhttps://www.youtube.com/GamingGeek" to player
  10. send "&a&lWebsite &f&l- &a&lhttps://www.spectralmc.tk" to player
  11.  
  12. on chat:
  13. if player has permission "karma.basic":
  14. if message contains "gg":
  15. if {karma.recent.%player%} is not set:
  16. add 5 to {karma.%player%}
  17. make player execute command "/cooldown"
  18. send "{@Karma.Prefix} &3&l 5 Karma has been added to your balance!"
  19. else:
  20. send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
  21.  
  22. on chat:
  23. if player has permission "karma.rank1":
  24. if message contains "gg":
  25. if {karma.recent.%player%} is not set:
  26. add 10 to {karma.%player%}
  27. make player execute command "/cooldown"
  28. send "{@Karma.Prefix} &3&l 10 Karma has been added to your balance! &f&l[RANK Bonus]"
  29. else:
  30. send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
  31.  
  32. on chat:
  33. if player has permission "karma.rank2":
  34. if message contains "gg":
  35. if {karma.recent.%player%} is not set:
  36. add 15 to {karma.%player%}
  37. make player execute command "/cooldown"
  38. send "{@Karma.Prefix} &3&l 15 Karma has been added to your balance! &f&l[RANK Bonus]"
  39. else:
  40. send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
  41.  
  42. on chat:
  43. if player has permission "karma.rank3":
  44. if message contains "gg":
  45. if {karma.recent.%player%} is not set:
  46. add 20 to {karma.%player%}
  47. make player execute command "/cooldown"
  48. send "{@Karma.Prefix} &3&l 20 Karma has been added to your balance! &f&l[RANK Bonus]"
  49. else:
  50. send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
  51.  
  52. on chat:
  53. if player has permission "karma.rank4":
  54. if message contains "gg":
  55. if {karma.recent.%player%} is not set:
  56. add 25 to {karma.%player%}
  57. make player execute command "/cooldown"
  58. send "{@Karma.Prefix} &3&l 25 Karma has been added to your balance! &f&l[RANK Bonus]"
  59. else:
  60. send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
  61.  
  62. on chat:
  63. if player has permission "karma.staff":
  64. if message contains "gg":
  65. if {karma.recent.%player%} is not set:
  66. add 75 to {karma.%player%}
  67. make player execute command "/cooldown"
  68. send "{@Karma.Prefix} &3&l 75 Karma has been added to your balance! &c&l[STAFF Bonus]"
  69. else:
  70. send "{@Karma.Prefix} &3&lYour Karma is currently on cooldown. You can't earn more!"
  71.  
  72. command /karma [<player>]:
  73. trigger:
  74. if arg-1 is set:
  75. send "{@Karma.Prefix} &3&l%arg-1%'s Karma balance is %{karma.%arg-1%}%!"
  76. else:
  77. send "{@Karma.Prefix} &3&lYour Karma balance is %{karma.%player%}%!"
  78.  
  79. command /cooldown:
  80. trigger:
  81. set {karma.recent.%player%} to true
  82. wait 10 minutes
  83. delete {karma.recent.%player%}
  84.  
  85. command /resetkarma:
  86. trigger:
  87. send "{@Karma.Prefix} &c&lARE YOU SURE YOU WANT TO DELETE YOUR KARMA?"
  88. send "{@Karma.Prefix} &c&lUSE /DELCONFIRM IF YOUR SURE!"
  89.  
  90. command /delconfirm:
  91. trigger:
  92. set {karma.%player%} to 0
  93. send "{@Karma.Prefix} &a&lYour Karma Was Reset!"
  94.  
  95. command /delcooldown:
  96. permission: mineplex.admin
  97. trigger:
  98. delete {karma.recent.%player%}
  99.  
  100.  
  101. command /karmaconvert:
  102. trigger:
  103. wait 1 second
  104. open chest with 6 rows named "&f&lKarma Converter" to player
  105. format slot 10 of player with gold ingot named "&a&lYour Current Karma" with lore "&fYou currently have %{karma.%player%}% Karma!" to close then run [make player execute command "/karma"]
  106. format slot 12 of player with coal ore named "&7250 Karma > 10000 Coins" with lore "&f&lClick Me to convert 250 Karma to 100 Coins" to close then run [make player execute command "/karma250GUI"]
  107. #Use the commands down below to add different conversion amounts. e.g. Copy /karma250GUI and /karma250 and replace the 250 with the amount.
  108. #Then add another slot in the GUI (Copy the line 'format slot 12 of player' and change the command, amount and item)
  109.  
  110. command /karma250GUI:
  111. trigger:
  112. wait 1 second
  113. open chest with 6 rows named "&f&l250 KARMA > 10000 COINS" to player
  114. format slot 4 of player with gold ingot named "&a&lKarma" with lore "&f250 Karma will be||&ftaken from your account balance" to be unstealable
  115. format slot 22 of player with emerald named "&f10000 Coins" with lore "&fCan be used to buy kits!" to be unstealable
  116. format slot 27 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
  117. format slot 28 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
  118. format slot 29 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
  119. format slot 36 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
  120. format slot 37 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
  121. format slot 38 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
  122. format slot 45 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
  123. format slot 46 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
  124. format slot 47 of player with emerald block named "&aOK" with lore "" to close then run [make player execute command "/karma250"]
  125. format slot 33 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
  126. format slot 34 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
  127. format slot 35 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
  128. format slot 42 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
  129. format slot 43 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
  130. format slot 44 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
  131. format slot 51 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
  132. format slot 52 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
  133. format slot 53 of player with redstone block named "&cCANCEL" with lore "" to close then run [make player execute command "/karmaconvert"]
  134.  
  135. command /karma250: #Thanks to xUndefined on the SkUnity forums (forums.skunity.com) for help with this command
  136. trigger:
  137. set {_karma} to 250
  138. if {karma.%player%} is less than {_karma}:
  139. send "{@Karma.Prefix} &c&lTRANSACTION FAILED!" #Change this if you want a different fail message
  140. stop
  141. else:
  142. execute console command "/eco give %player% 10000" #Change this command if you have a different economy plugin (Default is Vault and Essentials)
  143. remove 250 from {karma.%player%}
  144. send "{@Karma.Prefix} &a&lTransaction Successful!" #Change this if you want a different success message
Advertisement
Add Comment
Please, Sign In to add comment