Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /ngword [<text>] [<text>]:
- permission: ngword.admin
- permission message: &4このコマンドを実行する権限がありません!
- trigger:
- if arg-1 is not set:
- send "&cUsage: /ngword <add|remove> <text> OR /ngword list"
- else if arg-1 is not "add" or "remove" or "list":
- send "&cUsage: /ngword <add|remove> <text> OR /ngword list"
- else if arg-1 is "add" or "remove":
- if arg-2 is not set:
- send "&cUsage: /ngword %arg-1 in lower case% <text>"
- else if arg-1 is "add":
- if {ngword::*} contain arg-2:
- send "&c%arg-2 in lower case%は既にNGワードに登録されています!"
- else:
- set {ngword::%arg-2%} to arg-2
- send "&eNGワードを登録しました &6「%arg-2 in lower case%」"
- else if arg-1 is "remove":
- if {ngword::*} do not contain arg-2:
- send "&c%arg-2 in lower case%はNGワードに登録されていません!"
- else:
- delete {ngword::%arg-2%}
- send "&eNGワードを消去しました &6「%arg-2 in lower case%」"
- else if arg-1 is "list":
- if {ngword::*} is not set:
- send "&cNGワードはひとつも登録されていません!"
- else if {ngword::*} is set:
- set {_listtext} to join {ngword::*} by "&f, &e"
- send "&7NGWords (%size of {ngword::*}%): &e%{_listtext}%"
- on chat:
- set {_ngwordcount} to 0
- loop {ngword::*}:
- message contain loop-value
- add 1 to {_ngwordcount}
- {_ngwordcount} >= 1
- cancel event
- set {mute::%UUID of player%} to 1
- set {mutedplayername.%UUID of player%} to "%player%"
- set {unmutetime.%UUID of player%} to floor(unix timestamp of now/1000)+86400*{_ngwordcount}
- set {_muteperiod} to "%86400*{_ngwordcount}%" parsed as integer
- broadcast "&6AutoMuteSystem&eが&6%player%&eをミュートしました%nl%&e期限: &7%getPeriodFromSeconds({_muteperiod})%"
Advertisement
Add Comment
Please, Sign In to add comment