Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /*opt [<text>] [<text>]:
- permission: skript.basicpanisher.opt
- 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 /*ban [<offline player>] [<text>] [<text>]:
- permission: skript.basicpanisher.ban
- 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"
- message "&5Banned %arg 1%: &c%colored {_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 colored {_reason}
- if {bp::opt::send} is "ops":
- message "&5Banned %arg 1%: &c%colored {_reason}%" to ops
- if {bp::opt::send} is "all":
- broadcast "&5Banned %arg 1%: &c%colored {_reason}%"
- command /*warn [<offline player>] [<text>] [<text>]:
- permission: skript.basicpanisher.warn
- 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"
- message "&cSend Warn to %arg 1%"
- 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%colored {_reason}%" to arg 1
- command /*rem [<offline player>]:
- permission: skript.basicpanisher.rem
- trigger:
- if arg 1 is not set:
- message "&c/*rem <プレイヤー名>"
- stop
- if {bp::bans::%arg 1%::time} is set:
- message "&3Unban %arg 1%"
- clear {bp::bans::%arg 1%::time}
- clear {bp::bans::%arg 1%::reason}
- clear {bp::bans::%arg 1%::term}
- if number of {bp::warns::%arg 1%::time::*} > 0:
- message "&3Clear Warn %arg 1%"
- loop {bp::warns::%arg 1%::time::*}:
- clear {bp::warns::%arg 1%::time::%loop-index%}
- clear {bp::warns::%arg 1%::reason::%loop-index%}
- clear {bp::warns::%arg 1%::term::%loop-index%}
- command /*warns [<offline player>]:
- permission: skript.basicpanisher.warns
- trigger:
- if arg 1 is not set:
- message "&c/*warns <プレイヤー名>"
- stop
- loop {bp::warns::%arg 1%::time::*}:
- message "&6Recent Warn: &c%colored {bp::warns::%arg 1%::reason::%loop-index%}%"
- message "&aPanish: &c%{bp::warns::%arg 1%::time::%loop-index%}%"
- message "&aTerm: &c%{bp::warns::%arg 1%::term::%loop-index%}%"
- command /warns:
- trigger:
- loop {bp::warns::%player%::time::*}:
- message "&6Recent Warn: &c%colored {bp::warns::%player%::reason::%loop-index%}%"
- message "&aPanish: &c%{bp::warns::%player%::time::%loop-index%}%"
- message "&aTerm: &c%{bp::warns::%player%::term::%loop-index%}%"
- command /*temp [<text>] [<text>]:
- permission: skript.basicpanisher.temp
- trigger:
- if arg 2 is not set:
- message "&c/*temp <ID> <テンプレート化する文章>"
- message "&6テンプレートはBAN理由などで""@ID""で使用可能"
- stop
- set {bp::temp::%arg 1%} to arg 2
- message "&6Regist Temp ID %arg 1%: %colored arg 2%"
- on connect:
- 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 colored {bp::bans::%player%::reason}
- on join:
- loop {bp::warns::%player%::time::*}:
- if difference between now and {bp::warns::%player%::time::%loop-index%} > {bp::warns::%player%::term::%loop-index%}:
- clear {bp::warns::%player%::time::%loop-index%}
- clear {bp::warns::%player%::reason::%loop-index%}
- clear {bp::warns::%player%::term::%loop-index%}
- else:
- wait a second
- execute player command "warns"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement