Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {bp::bans::%player%::time} is set:
- if difference between now and {bp::bans::%player%::time} > {bp::bans::%player%::term}:
- clear {bp::bans::%player%::time}
- clear {bp::bans::%player%::reason}
- clear {bp::bans::%player%::term}
- else:
- kick the player due to {bp::bans::%player%::reason}
- loop {bp::warns::%player%::time::*}:
- if difference between now and loop-value > {bp::warns::%arg 1%::term::%loop-index%}:
- clear {bp::warns::%arg 1%::time::%loop-index%}
- clear {bp::warns::%arg 1%::reason::%loop-index%}
- clear {bp::warns::%arg 1%::term::%loop-index%}
- else:
- message "&6Recent Warn: &c%{bp::warns::%arg 1%::reason::%loop-index%}%"
- command /bpopt [<text>] [<text>]:
- permission: skript.basicpanisher
- aliases: /bpo
- trigger:
- if arg 1 is "send":
- if arg 2 is not "all", "ops", or "none":
- message "&c/*opt send <all|ops|none> &7BANを伝えるプレイヤーの設定"
- stop
- set {bp::opt::send} to arg 1
- else:
- message "&c/*opt send <all|ops|none> &7BANを伝えるプレイヤーの設定"
- command /bpban [<offline player>] [<text>] [<text>]:
- permission: skript.basicpanisher
- aliases: /bpb
- trigger:
- if arg 3 is not set:
- message "&c/*ban <プレイヤー名> <理由> <期間>"
- message "&d<理由> にはテンプレートが使用可能"
- message "&d<期間> は""5 minutes""など"
- stop
- set {_reason} to arg 2
- if first character of {_reason} is "@":
- replace "@" in {_reason} with ""
- set {_reason} to {bp::temp::%{_reason}%}
- if {_reason} is not set:
- set {_reason} to "no reason"
- set {bp::bans::%arg 1%::time} to now
- set {bp::bans::%arg 1%::reason} to {_reason}
- set {bp::bans::%arg 1%::term} to arg 3 parsed as timespan
- kick arg 1 due to {_reason}
- if {bp::opt::send} is "ops":
- message "&5Banned %arg 1%: &c%{_reason}%" to ops
- if {bp::opt::send} is "all":
- broadcast "&5Banned %arg 1%: &c%{_reason}%"
- command /bpwarn [<offline player>] [<text>] [<text>]:
- permission: skript.basicpanisher
- aliases: /bpw
- trigger:
- if arg 3 is not set:
- message "&c/*warn <プレイヤー名> <文章> <期間>"
- message "&d<理由> にはテンプレートが使用可能"
- message "&d<期間> は""5 minutes""など"
- message "&6期間中はjoinするごとに警告が表示される"
- stop
- set {_reason} to arg 2
- if first character of {_reason} is "@":
- replace "@" in {_reason} with ""
- set {_reason} to {bp::temp::%{_reason}%}
- if {_reason} is not set:
- set {_reason} to "no reason"
- add now to {bp::warns::%arg 1%::time::*}
- add {_reason} to {bp::warns::%arg 1%::reason::*}
- add arg 3 parsed as timespan to {bp::warns::%arg 1%::term::*}
- message "&4&lWarn: &c%{_reason}%" to arg 1
- command /bptemp [<text>] [<text>]:
- permission: skript.basicpanisher
- aliases: /bpt
- trigger:
- if arg 2 is not set:
- message "&c/*temp <ID> <テンプレート化する文章>"
- message "&6テンプレートはBAN理由などで""@ID""で使用可能"
- set {bp::temp::%arg 1%} to arg 2
Add Comment
Please, Sign In to add comment