Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #AutoUnBan Version 2.0 by Tapioca_MilkTea#
- on join:
- wait 3 ticks
- if {aub.list.%player%} is not set:
- set {aub.list.%player%} to false
- if {aub.fix.%player%} is true:
- send "&2[自動BAN解除] &aBAN解除に成功しました!"
- stop
- on quit:
- if {aub.list.%player%} is true:
- if player is banned:
- set {aub.fix.%player%} to true
- unban player
- stop
- command /autounban [<text>] [<player>]:
- permission:autounban.commands
- trigger:
- if arg 1 is not set:
- send "&8&l&m-----------------------------------------------------"
- send "&7/autounban add (名前) : 指定した人を自動BAN解除の対象にする"
- send "&7/autounban remove (名前) : 指定した人を自動BAN解除の対象から外す"
- send "&8&l&m-----------------------------------------------------"
- stop
- if arg 1 is "add":
- if arg 2 is not set:
- send "&cプレイヤーを指定してください。"
- stop
- if arg 2 is set:
- if {aub.list.%arg 2%} is true:
- send "&4[自動BAN解除] &c%arg 2%さんは既に自動BAN解除の対象です。"
- stop
- if {aub.list.%arg 2%} is false:
- set {aub.list.%arg 2%} to true
- send "&2[自動BAN解除] &a%arg 2%さんが自動BAN解除の対象になりました。"
- stop
- if arg 1 is "remove":
- if arg 2 is not set:
- send "&cプレイヤーを指定してください。"
- stop
- if arg 2 is set:
- if {aub.list.%arg 2%} is true:
- set {aub.list.%arg 2%} to false
- send "&2[自動BAN解除] &a%arg 2%さんが自動BAN解除の対象から外されました。"
- stop
- if {aub.list.%arg 2%} is false:
- send "&4[自動BAN解除] &c%arg 2%さんは既に自動BAN解除の対象から外されています。"
- stop
Add Comment
Please, Sign In to add comment