Blue_Tec

Untitled

Apr 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. on join:
  2. set join message to "&5&l|&6&lHesita-RPG &b&l>> &e&l%player%さんがログインしました。"
  3. teleport player to {lobby}
  4.  
  5. on quit:
  6. set quit message to "&5&l|&6&lHesita-RPG &b&l>> &e&l%player%さんがログアウトしました。"
  7.  
  8. on chat:
  9. if {rank::%uuid of player%::owner} is true:
  10. cancel event
  11. broadcast "&4&l運営者&5&l||&f%player%&a: &b&l%message%"
  12. if {rank::%uuid of player%::admin} is true:
  13. cancel event
  14. broadcast "&c&l管理者&5&l||&f%player%&a: &b&l%message%"
  15. if {rank::%uuid of player%::mod} is true:
  16. cancel event
  17. broadcast "&9&lモデレーター&5&l||&f%player%&a: &b&l%message%"
  18. if {rank::%uuid of player%::builder} is true:
  19. cancel event
  20. broadcast "&3&l建築者&5&l||&f%player%&a: &b&l%message%"
  21.  
  22. command /setrank [<text>] [<player>]:
  23. permission: setrank.admin
  24. permission message: &5&l|&6&lHesita-RPG &b&l>> &cその権限はありません。
  25. trigger:
  26. if arg-1 is not set:
  27. message "&cOwner,Admin,Moderator,Builder"
  28. if arg-1 is set:
  29. if arg-2 is not set:
  30. if arg-1 is "Owner":
  31. set {rank::%uuid of player%::*} to false
  32. set {rank::%uuid of player%::owner} to true
  33. message "&5&l|&6&lHesita-RPG &b&l>> &e&l運営者に変更しました。"
  34. if arg-1 is "Admin":
  35. set {rank::%uuid of player%::*} to false
  36. set {rank::%uuid of player%::admin} to true
  37. message "&5&l|&6&lHesita-RPG &b&l>> &e&l管理者に変更しました。"
  38. if arg-1 is "Moderator":
  39. set {rank::%uuid of player%::*} to false
  40. set {rank::%uuid of player%::mod} to true
  41. message "&5&l|&6&lHesita-RPG &b&l>> &e&lモデレーターに変更しました。"
  42. if arg-1 is "Builder":
  43. set {rank::%uuid of player%::*} to false
  44. set {rank::%uuid of player%::builder} to true
  45. message "&5&l|&6&lHesita-RPG &b&l>> &e&l建築者に変更しました。"
  46. if arg-1 is not "Owner" or "Admin" or "Moderator" or "Builder":
  47. message "&cOwner,Admin,Moderator,Builder"
  48. if arg-2 is set:
  49. if arg-1 is "Owner":
  50. set {rank::%uuid of arg-2%::*} to false
  51. set {rank::%uuid of arg-2%::owner} to true
  52. message "&5&l|&6&lHesita-RPG &b&l>> &e&l運営者に変更しました。"
  53. send "&5&l|&6&lHesita-RPG &b&l>> &a&lあなたは、運営者になりました。" to arg-2
  54. if arg-1 is "Admin":
  55. set {rank::%uuid of arg-2%::*} to false
  56. set {rank::%uuid of arg-2%::admin} to true
  57. message "&5&l|&6&lHesita-RPG &b&l>> &e&l管理者に変更しました。"
  58. send "&5&l|&6&lHesita-RPG &b&l>> &a&lあなたは、管理者になりました。" to arg-2
  59. if arg-1 is "Moderator":
  60. set {rank::%uuid of arg-2%::*} to false
  61. set {rank::%uuid of arg-2%::mod} to true
  62. message "&5&l|&6&lHesita-RPG &b&l>> &e&lモデレーターに変更しました。"
  63. send "&5&l|&6&lHesita-RPG &b&l>> &a&lあなたは、モデレーターになりました。" to arg-2
  64. if arg-1 is "Builder":
  65. set {rank::%uuid of arg-2%::*} to false
  66. set {rank::%uuid of arg-2%::builder} to true
  67. message "&5&l|&6&lHesita-RPG &b&l>> &e&l建築者に変更しました。"
  68. send "&5&l|&6&lHesita-RPG &b&l>> &a&lあなたは、建築者になりました。" to arg-2
  69. if arg-1 is not "Owner" or "Admin" or "Moderator" or "Builder":
  70. message "&cOwner,Admin,Moderator,Builder"
  71.  
  72. command /setspawn:
  73. permission: setspawn.admin
  74. permission message: &5&l|&6&lHesita-RPG &b&l>> &cその権限はありません。
  75. trigger:
  76. set {lobby} to location of player
Add Comment
Please, Sign In to add comment