Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /afc [<text>] [<player>] [<int>]:
- permission: afc.check
- permission message: &cYou do not have access to that command.
- trigger:
- if arg-1 is set:
- if player has permission "afc.admin":
- if arg-1 is "add", "subtract", "set":
- if arg-2 is set:
- if arg-1 is "add":
- if arg-3 is set:
- add arg-3 to {afcbal.%arg-2%} parsed as integer
- send "&7Added %arg-3% to %arg-2%'s balance"
- stop
- else:
- send "&7You must mention an amount!"
- stop
- if arg-1 is "subtract":
- subtract arg-3 from {afcbal.%arg-2%} parsed as integer
- send "&7Subtracted %arg-3% from %arg-2%'s balance"
- stop
- else:
- send "&7You must mention an amount!"
- stop
- if arg-1 is "set":
- set {afcbal.%arg-2%} to arg-3 parsed as integer
- send "&7Set %arg-2%'s balance to %arg-3%"
- stop
- else:
- send "&7You must mention an amount!"
- stop
- else:
- send "&7You have to mention a player!"
- else:
- send "&7/afc add&8|&7subtract&8|&7set&8|&7remove <player>"
- stop
- else:
- send "&7Your balance: &c%{afcbal.%player%}%"
- stop
- else:
- if player has permission "afc.admin":
- send "&cUsage:"
- send "&7/afc add&8|&7subtract&8|&7set&8|&7remove <player>"
- stop
- else:
- send "&7Your balance: &c%{afcbal.%player%}%"
- stop
- on join:
- if {afcbal.%player%} is not set:
- set {afcbal.%player%} to 0 parsed as integer
- if {afcbal.%player%} is "<none>":
- set {afcbal.%player%} to 0 parsed as integer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement