Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /eco [<text>] [<player>] [<integer>]:
- trigger:
- if sender has permission "cb.eco":
- if arg-1 is not set:
- message "{@p} &7Bitte benutz /eco [set/remove/add] [Spieler] [Betrag]"
- else:
- if arg-2 is not set:
- message "{@p} &7Bitte benutz /eco %arg-1% [Spieler] [Betrag]"
- else:
- if arg-3 is not set:
- message "{@p} &7Bitte benutz /eco %arg-1% %arg-2% [Betrag]"
- else:
- if arg-1 is "set":
- if arg-3 is set:
- set {money::%uuid of arg-2%} to arg-3
- send "{@p} &7Du hast %arg-2%'s Kontostand auf %arg-3%$ gesetzt!"
- else:
- send "{@p} &7Bitte gib einen Betrag an!"
- if arg-1 is "remove":
- if arg-3 is set:
- remove 100 from {money::%uuid of arg-2%}
- send "{@p} &7Du hast %arg-3%$ von %arg-2%'s Kontostand abgezogen!"
- else:
- send "{@p} &7Bitte gib einen Betrag an!"
- if arg-1 is "add":
- if arg-3 is set:
- add arg-3 to {money::%uuid of arg-2%}
- send "{@p} &7Du hast dem Kontostand von %arg-2% %arg-3%$ hinzugefügt!"
- else:
- send "{@p} &7Bitte gib einen Betrag an!"
- else:
- send "{@np}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement