Advertisement
taktie0304

Untitled

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