Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /texts <text> [<text>] [<number>] [<text>]:
- usage: &e/texts <disp|add> ...
- permission: skript.admin
- trigger:
- if arg 2 is not set:
- message "&4Error: &ctextID is not set."
- stop
- if arg 1 is "disp":
- if {texts-lines.%arg 2%} is not set:
- message "&4Error: &cmessage is not set."
- stop
- if arg 3 is less than 2:
- set {_radius} to 1
- else if arg 3 is not set:
- set {_radius} to 3
- else:
- set {_radius} to arg 3
- loop {texts-lines.%arg 2%} times:
- loop all player in radius {_radius} around
- message "{texts-message.%arg 3%.%loop-number%}" to loop-player
- if arg 1 is "add":
- if arg 3 is not set:
- message "&4Error: &clinenum is not set."
- stop
- if arg 4 is not set:
- message "&4Error: &cmessage is not set."
- stop
- add 1 to {text-lines.%arg 2%}
- set {text-message.%arg 2%.%arg 3%} to arg 4
- message "&2Success: &aメッセージを追加しました"
Add Comment
Please, Sign In to add comment