Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. #tell, reply
  2. command /tell [<offline player>] [<text>]:
  3. aliases: /msg, /w, /whisper
  4. trigger:
  5. if sender is player:
  6. if player has permission "tell.command":
  7. if argument 1 is set:
  8. if argument 1 isn't "%player%":
  9. if argument 1 is online:
  10. if argument 2 is set:
  11. set {tell::%player's uuid%::reply} to argument 1
  12. set {tell::%uuid of argument 1%::reply} to player
  13. message "&3Ja -> %argument 1%: &b%argument 2%" to player
  14. message "&3%player% -> Ja: &b%argument 2%" to argument 1
  15. else:
  16. message "&7Poprawne uzycie: &c/tell <player> [text...]" to player
  17. else:
  18. message "&cNie odnaleziono podanego gracza!" to player
  19. else:
  20. message "&cWystapil blad, sproboj ponnownie!" to player
  21. else:
  22. message "&7Poprawne uzycie: &c/tell <player> [text...]" to player
  23. else:
  24. message "&4Nie masz dostepu do tej komendy!" to player
  25. else:
  26. message "&cNie mozesz uzyc tej komendy z poziomu konsoli!" to sender
  27. command /reply [<text>]:
  28. aliases: /r
  29. trigger:
  30. if sender is player:
  31. if player has permission "tell.command":
  32. if argument 1 is set:
  33. if {tell::%player's uuid%::reply} is set:
  34. if {tell::%player's uuid%::reply} is online:
  35. message "&3Ja -> %{tell::%player's uuid%::reply}%: &b%argument 1%" to player
  36. message "&3%player% -> Ja: &b%argument 1%" to {ess::%player's uuid%::reply}
  37. else:
  38. message "&cWystapil blad, sproboj ponnownie!" to player
  39. else:
  40. message "&cWystapil blad, sproboj ponnownie!" to player
  41. else:
  42. message "&7Poprawne uzycie: &c/reply [text...]" to player
  43. else:
  44. message "&4Nie masz dostepu do tej komendy!" to player
  45. else:
  46. message "&cNie mozesz uzyc tej komendy z poziomu konsoli!" to sender
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement