Satoru7135

Untitled

May 20th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. #AutoUnBan Version 2.0 by Tapioca_MilkTea#
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. on join:
  27. wait 3 ticks
  28. if {aub.list.%player%} is not set:
  29. set {aub.list.%player%} to false
  30. if {aub.fix.%player%} is true:
  31. send "&2[自動BAN解除] &aBAN解除に成功しました!"
  32. stop
  33. on quit:
  34. if {aub.list.%player%} is true:
  35. if player is banned:
  36. set {aub.fix.%player%} to true
  37. unban player
  38. stop
  39.  
  40. command /autounban [<text>] [<player>]:
  41. permission:autounban.commands
  42. trigger:
  43. if arg 1 is not set:
  44. send "&8&l&m-----------------------------------------------------"
  45. send "&7/autounban add (名前) : 指定した人を自動BAN解除の対象にする"
  46. send "&7/autounban remove (名前) : 指定した人を自動BAN解除の対象から外す"
  47. send "&8&l&m-----------------------------------------------------"
  48. stop
  49. if arg 1 is "add":
  50. if arg 2 is not set:
  51. send "&cプレイヤーを指定してください。"
  52. stop
  53. if arg 2 is set:
  54. if {aub.list.%arg 2%} is true:
  55. send "&4[自動BAN解除] &c%arg 2%さんは既に自動BAN解除の対象です。"
  56. stop
  57. if {aub.list.%arg 2%} is false:
  58. set {aub.list.%arg 2%} to true
  59. send "&2[自動BAN解除] &a%arg 2%さんが自動BAN解除の対象になりました。"
  60. stop
  61. if arg 1 is "remove":
  62. if arg 2 is not set:
  63. send "&cプレイヤーを指定してください。"
  64. stop
  65. if arg 2 is set:
  66. if {aub.list.%arg 2%} is true:
  67. set {aub.list.%arg 2%} to false
  68. send "&2[自動BAN解除] &a%arg 2%さんが自動BAN解除の対象から外されました。"
  69. stop
  70. if {aub.list.%arg 2%} is false:
  71. send "&4[自動BAN解除] &c%arg 2%さんは既に自動BAN解除の対象から外されています。"
  72. stop
Add Comment
Please, Sign In to add comment