Advertisement
SuzukazeK

Untitled

Dec 21st, 2019
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. on command:
  2. command is "pl" or "plugins"
  3. cancel event
  4. loop {pl::*}:
  5. set {_pl} to "%{_pl}%&f, &a%loop-value%"
  6. replace "<none>&f, " with "" in {_pl}
  7. send "&fPlugins (%{pl}%): %{_pl}%"
  8.  
  9. command /pledit [<text>] [<text>]:
  10. permission: skript.admin
  11. trigger:
  12. if arg-1 is not "add" or "remove" or "reset":
  13. send "-- <PLedit> --", "/pledit <text> <text>" and "arg-1 is ""add"" or ""remove"" or ""reset"""
  14. else if arg-1 is "add":
  15. if {pl::%arg-2%} is set:
  16. send "-- <PLedit> --" and "%arg-2%は既に存在します"
  17. stop
  18. send "-- <PLedit> --" and "%arg-2%を追加しました"
  19. set {pl::%arg-2%} to "%arg-2%"
  20. add 1 to {pl}
  21. else if arg-1 is "remove":
  22. if {pl::%arg-2%} is not set:
  23. send "-- <PLedit> --" and "%arg-2%は存在しません"
  24. stop
  25. send "-- <PLedit> --" and "%arg-2%を削除しました"
  26. delete {pl::%arg-2%}
  27. add -1 to {pl}
  28. else if arg-1 is "reset":
  29. send "-- <PLedit> --" and "リセットしました"
  30. delete {pl::*}
  31. delete {pl}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement