taktie0304

Untitled

May 28th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. command /coin [<text>] [<offline player>] [<number>]:
  2. usage: &c/coin <add / remove / set / check / プレイヤー名> <プレイヤー名> <数字>
  3. trigger:
  4. if arg 1 is not set:
  5. send "&eお金: &6%{coin.%uuid of player%}%&eコイン"
  6. if arg 1 is "check":
  7. if {existe.%arg 2%} is true:
  8. send "&e%arg 2%のお金: &6%{coin.%uuid of arg 2%}%&eコイン"
  9. else:
  10. send "&c有効の設定になっていません"
  11. if arg 1 is "add":
  12. if player has permission "skript.coin.admin":
  13. if arg 3 is more than 0:
  14. if arg 3 is less than 10000001:
  15. add arg 3 to {coin.%uuid of arg 2%}
  16. send "&a%arg 2%のお金を%arg 3%コイン追加しました"
  17. else:
  18. send "&c数字を1から1000000にしてください"
  19. else:
  20. send "&c数字を1から1000000にしてください"
  21. else:
  22. send "&c権限がありません"
  23. if arg 1 is "remove":
  24. if player has permission "skript.coin.admin":
  25. if arg 3 is less or equal to {coin.%uuid of arg 2%}:
  26. if arg 3 is more than 0:
  27. remove arg 3 from {coin.%uuid of arg 2%}
  28. send "&a%arg 2%のお金を%arg 3%コイン減らしました"
  29. else:
  30. send "0以上にしてください"
  31. else:
  32. send "&cそれ以上減らせません"
  33. else:
  34. send "&c権限がありません"
  35. if arg 1 is "set":
  36. if player has permission "skript.coin.admin":
  37. if arg 3 is more than -1:
  38. if arg 3 is less than 10000001:
  39. set {coin.%uuid of arg 2%} to arg 3
  40. send "&a%arg 2%のお金を%arg 3%コインにしました"
  41. else:
  42. send "&c数字を0から1000000にしてください"
  43. else:
  44. send "&c数字を0から1000000にしてください"
  45. else:
  46. send "&c権限がありません"
  47. if arg-1 is not "add" or "remove" or "set":
  48. set {_1} to arg-1 parsed as offline player
  49.  
  50. on first join:
  51. set {coin.%uuid of player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment