szumielxd

AutoMessage

Aug 31st, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. command /setname [<text>]:
  2. permission: mod
  3. trigger:
  4. player's tool is air:
  5. send "&cMam ci zmienic nazwe reki?"
  6. stop
  7. arg 1 is not set:
  8. reset name of player's tool
  9. send "&cChyba zapomniales podac nowej nazwy przedmiotu"
  10. stop
  11. set {_a} to arg 1
  12. replace "&" with "§" in {_a}
  13. set name of player's tool to {_a}
  14. send "&6Ustawiono nazwe przedmiotu w rece na '&r%{_a}%&6'"
  15.  
  16. command /setlore [<text>] [<text>]:
  17. permission: mod
  18. trigger:
  19. arg 1 is not set:
  20. send "&f-------------=====&5SetLore&f=====-------------"
  21. send "&d/setlore &7Wyswietla to wlasnie menu"
  22. send "&d/setlore -add <tekst> &7Dodaje dalsza czesc lore przedmiotu w rece"
  23. send "&d/setlore -clear &7Ustawia lore przedmiotu w rece na """""
  24. send "&d/setlore <tekst> &7Ustawia nowe lore przedmiotu w rece"
  25. stop
  26. arg 2 is not set:
  27. arg 1 is "-clear":
  28. set lore of player's tool to ""
  29. send "&dUstawiono lore przedmiotu w rece na """""
  30. stop
  31.  
  32. arg 1 is "-add":
  33. arg 2 is set:
  34. set {_ar2} to arg 2
  35. replace "&" with "§" in {_ar2}
  36. set lore of player's tool to "%lore of player's tool% %{_ar2}%"
  37. send "Dodano tekst do lore przedmiotu w rece"
  38. stop
  39. set {_ar1} to arg 1
  40. replace "&" with "§" in {_ar1}
  41. arg 2 is not set:
  42. set lore of player's tool to "%{_ar1}%"
  43. send "Ustawiono lore przedmiotu w rece"
  44. stop
  45. set {_ar2} to arg 2
  46. replace "&" with "§" in {_ar2}
  47. set lore of player's tool to "%{_ar1}% %{_ar2}%"
  48. send "Ustawiono lore przedmiotu w rece"
Advertisement
Add Comment
Please, Sign In to add comment