Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on command:
- command is "pl" or "plugins"
- cancel event
- loop {pl::*}:
- set {_pl} to "%{_pl}%&f, &a%loop-value%"
- replace "<none>&f, " with "" in {_pl}
- send "&fPlugins (%{pl}%): %{_pl}%"
- command /pledit [<text>] [<text>]:
- permission: skript.admin
- trigger:
- if arg-1 is not "add" or "remove" or "reset":
- send "-- <PLedit> --", "/pledit <text> <text>" and "arg-1 is ""add"" or ""remove"" or ""reset"""
- else if arg-1 is "add":
- if {pl::%arg-2%} is set:
- send "-- <PLedit> --" and "%arg-2%は既に存在します"
- stop
- send "-- <PLedit> --" and "%arg-2%を追加しました"
- set {pl::%arg-2%} to "%arg-2%"
- add 1 to {pl}
- else if arg-1 is "remove":
- if {pl::%arg-2%} is not set:
- send "-- <PLedit> --" and "%arg-2%は存在しません"
- stop
- send "-- <PLedit> --" and "%arg-2%を削除しました"
- delete {pl::%arg-2%}
- add -1 to {pl}
- else if arg-1 is "reset":
- send "-- <PLedit> --" and "リセットしました"
- delete {pl::*}
- delete {pl}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement