Advertisement
taktie0304

Untitled

Jun 4th, 2019
129
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 10000001:
  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%arg 2%から%arg 3%コイン受け取りました" to arg 2
  13. else:
  14. send "&c数字を1から10000000にしてください"
  15. else:
  16. send "&c数字を1から10000000にしてください"
  17. else:
  18. send "&c権限がありません"
  19. if arg 1 is "check":
  20. if arg 2 is set:
  21. if arg 3 is not set:
  22. if {existe.%arg 2%} is true:
  23. send "&e%arg 2%のお金: &6%{coin.%uuid of arg 2%}%&eコイン"
  24. else:
  25. send "&c初期設定がされていません"
  26. if arg 1 is "add":
  27. if player has permission "skript.coin.admin":
  28. if arg 3 is more than 0:
  29. if arg 3 is less than 10000001:
  30. add arg 3 to {coin.%uuid of arg 2%}
  31. send "&a%arg 2%のお金を%arg 3%コイン追加しました"
  32. else:
  33. send "&c数字を1から10000000にしてください"
  34. else:
  35. send "&c数字を1から10000000にしてください"
  36. else:
  37. send "&c権限がありません"
  38. if arg 1 is "remove":
  39. if player has permission "skript.coin.admin":
  40. if arg 3 is less or equal to {coin.%uuid of arg 2%}:
  41. if arg 3 is more than 0:
  42. remove arg 3 from {coin.%uuid of arg 2%}
  43. send "&a%arg 2%のお金を%arg 3%コイン減らしました"
  44. else:
  45. send "0以上にしてください"
  46. else:
  47. send "&cそれ以上減らせません"
  48. else:
  49. send "&c権限がありません"
  50. if arg 1 is "set":
  51. if player has permission "skript.coin.admin":
  52. if arg 3 is more than -1:
  53. if arg 3 is less than 10000001:
  54. set {coin.%uuid of arg 2%} to arg 3
  55. send "&a%arg 2%のお金を%arg 3%コインにしました"
  56. else:
  57. send "&c数字を0から10000000にしてください"
  58. else:
  59. send "&c数字を0から10000000にしてください"
  60. else:
  61. send "&c権限がありません"
  62. if arg-1 is not "add" or "remove" or "set":
  63. set {_1} to arg-1 parsed as offline player
  64.  
  65. on first join:
  66. set {coin.%uuid of player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement