Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /coin [<text>] [<offline player>] [<number>]:
- usage: &c/coin <add / remove / set / check / pay / プレイヤー名> <プレイヤー名> <数字>
- trigger:
- if arg 1 is not set:
- send "&eお金: &6%{coin.%uuid of player%}%&eコイン"
- if arg 1 is "pay":
- if arg 3 is more than 0:
- if arg 3 is less than 10000001:
- remove arg 3 from {coin.%uuid of player%}
- add arg 3 to {coin.%uuid of arg 2%}
- send "&a%arg 2%に%arg 3%コインわたしました" to player
- send "&a%arg 2%から%arg 3%コイン受け取りました" to arg 2
- else:
- send "&c数字を1から10000000にしてください"
- else:
- send "&c数字を1から10000000にしてください"
- else:
- send "&c権限がありません"
- if arg 1 is "check":
- if arg 2 is set:
- if arg 3 is not set:
- if {existe.%arg 2%} is true:
- send "&e%arg 2%のお金: &6%{coin.%uuid of arg 2%}%&eコイン"
- else:
- send "&c初期設定がされていません"
- if arg 1 is "add":
- if player has permission "skript.coin.admin":
- if arg 3 is more than 0:
- if arg 3 is less than 10000001:
- add arg 3 to {coin.%uuid of arg 2%}
- send "&a%arg 2%のお金を%arg 3%コイン追加しました"
- else:
- send "&c数字を1から10000000にしてください"
- else:
- send "&c数字を1から10000000にしてください"
- else:
- send "&c権限がありません"
- if arg 1 is "remove":
- if player has permission "skript.coin.admin":
- if arg 3 is less or equal to {coin.%uuid of arg 2%}:
- if arg 3 is more than 0:
- remove arg 3 from {coin.%uuid of arg 2%}
- send "&a%arg 2%のお金を%arg 3%コイン減らしました"
- else:
- send "0以上にしてください"
- else:
- send "&cそれ以上減らせません"
- else:
- send "&c権限がありません"
- if arg 1 is "set":
- if player has permission "skript.coin.admin":
- if arg 3 is more than -1:
- if arg 3 is less than 10000001:
- set {coin.%uuid of arg 2%} to arg 3
- send "&a%arg 2%のお金を%arg 3%コインにしました"
- else:
- send "&c数字を0から10000000にしてください"
- else:
- send "&c数字を0から10000000にしてください"
- else:
- send "&c権限がありません"
- if arg-1 is not "add" or "remove" or "set":
- set {_1} to arg-1 parsed as offline player
- on first join:
- set {coin.%uuid of player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement