Advertisement
Guest User

Untitled

a guest
May 29th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. command /favorites [<text>] [<offline player>]:
  2. trigger:
  3. if arg 2 is not set:
  4. if arg 1 is not set:
  5. send "&e—————————&fHelp: Favorites&e————————————————————————"
  6. send "&6/favorites list:&f shows who is online and offline of your favorites&r"
  7. send "&6/favorites add [playername]:&f Adds a player to your favorites list&r"
  8. send "&6/favorites remove [playername]:&f Removes a player from your favorites list&r"
  9. if arg 1 is "add" or "a":
  10. if arg 2 is set:
  11. if file "/home/ubuntu/minecraft/plugins/Skript/playerdata/users/%arg 2%" doesn't exists:
  12. send "&cThat player has not joined the server!&r"
  13. stop trigger
  14. if file "/home/ubuntu/minecraft/plugins/Skript/playerdata/favorites/%{uuid:%player%}%/%{name:%arg 2%}%" exists:
  15. send "&eThis player is already a favorite!&r"
  16. stop trigger
  17. create file "/home/ubuntu/minecraft/plugins/Skript/playerdata/favorites/%{uuid:%player%}%/%{name:%arg 2%}%"
  18. send "&aFavorite added.&r"
  19. else:
  20. send "&2Who would you like me to add?&r"
  21. if arg 1 is "remove" or "rem" or "delete" or "del":
  22. if arg 2 is set:
  23. if file "/home/ubuntu/minecraft/plugins/Skript/playerdata/users/%arg 2%" doesn't exists:
  24. send "&cThat player has not joined the server!&r"
  25. stop trigger
  26. if file "/home/ubuntu/minecraft/plugins/Skript/playerdata/favorites/%{uuid:%player%}%/%{name:%arg 2%}%" doesn't exists:
  27. send "&eThis player is not a favorite!&r"
  28. stop trigger
  29. df "/home/ubuntu/minecraft/plugins/Skript/playerdata/favorites/%{uuid:%player%}%/%{name:%arg 2%}%"
  30. send "&cFavorite removed.&r"
  31. else:
  32. send "&2Who would you like me to delete?&r"
  33. if arg 1 is "list":
  34. send "&2——————&8==========================&2——————&r"
  35. send "&2———&8===========&2&lF&a&la&2&lv&a&lo&2&lr&a&li&2&lt&a&le&27&ls&8===========&2———&r"
  36. send "&2——————&8==========================&2——————&r"
  37. set {_fave::*} to files in "/home/ubuntu/minecraft/plugins/Skript/playerdata/favorites/%{uuid:%player%}%"
  38. loop {_fave::*}:
  39. add loop-value to {_favetotal::*}
  40. set {_text} to "%{_favetotal::*}%"
  41. replace all "and " with "," in {_text}
  42. send "%{_text}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement