Advertisement
1c7

Bounty

1c7
Apr 30th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. #
  2. # By @Adxm#1343
  3. #
  4. # If there are any issues, please PM me on discord!
  5. #
  6. #
  7. options:
  8.  
  9. currency: $
  10.  
  11.  
  12. P: &6&lBOUNTY&7
  13.  
  14. on join:
  15. if {bounty::%player's uuid%} is not set:
  16. set {bounty::%player's uuid%} to 0
  17. command /bounty [<text>] [<player>] [<integer>]:
  18. trigger:
  19. if arg-1 is "add":
  20. if arg-2 is set:
  21. if arg-3 is set:
  22. if arg-3 > 0:
  23. if executor's balance >= arg-3:
  24. remove arg-3 from executor's balance
  25. add arg-3 to {bounty::%arg-2's uuid%}
  26. send "{@P} Added {@currency}&3%arg-3%&7 to &3%arg-2%&7's bounty."
  27. else:
  28. send "{@P} Invalid Amount. You do not have enough money."
  29. else:
  30. send "{@P} Invalid Amount. You can not use negatives."
  31. else:
  32. send "{@P} Invalid Syntax. &3/bounty add (player) (amount)&7."
  33. else:
  34. send "{@P} Invalid Syntax. &3/bounty add (player) (amount)&7."
  35. else if arg-1 is "reset":
  36. if player has permission "bounty.reset":
  37. if arg-2 is set:
  38. set {bounty::%arg-2's uuid%} to 0
  39. send "{@P} Deleted &3%arg-2%&7's bounty."
  40. else:
  41. send "{@P} Invalid Syntax. &3/bounty reset (player)&7."
  42. else:
  43. send "{@P} Invalid permission. &3bounty.reset&7."
  44. else if arg-1 is "check":
  45. if arg-2 is set:
  46. send "{@P} &3%arg-2%&7's bounty is currently {@currency}&3%{bounty::%arg-2's uuid%}%&7."
  47. else:
  48. send "{@P} Invalid Syntax. &3/bounty check (player)&7."
  49. else:
  50. send "{@P} Commands."
  51. send ""
  52. send "&7/bounty &3add (player) (amount)"
  53. send "&7/bounty &3reset (player) &7&o(bounty.reset)"
  54. send "&7/bounty &3check (player)"
  55. send ""
  56.  
  57. on death:
  58. if victim is a player:
  59. if attacker is a player:
  60. if {bounty::%victim's uuid%} > 0:
  61. add {bounty::%victim's uuid%} to attacker's balance
  62. broadcast "{@P} &3%attacker%&7 has claimed &3%victim%&7's bounty of {@currency}&3%{bounty::%victim's uuid%}%&7."
  63. wait 3 ticks
  64. set {bounty::%victim's uuid%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement