Advertisement
DampfWaffel

Untitled

Sep 2nd, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. command /eco [<text>] [<player>] [<integer>]:
  2. trigger:
  3. if sender has permission "cb.eco":
  4. if arg-1 is not set:
  5. message "{@p} &7Bitte benutz /eco [set/remove/add] [Spieler] [Betrag]"
  6. else:
  7. if arg-2 is not set:
  8. message "{@p} &7Bitte benutz /eco %arg-1% [Spieler] [Betrag]"
  9. else:
  10. if arg-3 is not set:
  11. message "{@p} &7Bitte benutz /eco %arg-1% %arg-2% [Betrag]"
  12. else:
  13. if arg-1 is "set":
  14. if arg-3 is set:
  15. set {money::%uuid of arg-2%} to arg-3
  16. send "{@p} &7Du hast %arg-2%'s Kontostand auf %arg-3%$ gesetzt!"
  17. else:
  18. send "{@p} &7Bitte gib einen Betrag an!"
  19. if arg-1 is "remove":
  20. if arg-3 is set:
  21. remove 100 from {money::%uuid of arg-2%}
  22. send "{@p} &7Du hast %arg-3%$ von %arg-2%'s Kontostand abgezogen!"
  23. else:
  24. send "{@p} &7Bitte gib einen Betrag an!"
  25. if arg-1 is "add":
  26. if arg-3 is set:
  27. add arg-3 to {money::%uuid of arg-2%}
  28. send "{@p} &7Du hast dem Kontostand von %arg-2% %arg-3%$ hinzugefügt!"
  29. else:
  30. send "{@p} &7Bitte gib einen Betrag an!"
  31. else:
  32. send "{@np}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement