SkiLLerK_1337

Untitled

Mar 24th, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. command /konto [<text>] [<text>]:
  2. trigger:
  3. if arg 1 is not set:
  4. send "&7>> &6Poprawne uzycie komendy: /konto <minecraft/historia/dodaj>"
  5. send "&aAktualna ilosc kont: %size of {konta::*}%"
  6. if arg 1 is "dodaj":
  7. if player has permission "konto.dodaj":
  8. if {konto.dodaj.limit.%player%} is not "1":
  9. set {konto.dodaj.%player%} to arg 2
  10. set {konto.dodaj.limit.%player%} to "1"
  11. loop all players:
  12. if loop-player has permission "konto.sprawdz":
  13. send "&e%player% udostepnil konto!" to loop-player
  14. if arg 1 is "minecraft":
  15. set {_konto} to random element of {konta::*}
  16. send "%{_konto}%"
  17. if {konto.pierwsze.%player%} is not {_konto}:
  18. set {konto.pierwsze.%player%} to {_konto}
  19. else:
  20. set {konto.trzecie.%player%} to {konto.drugie.%player%}
  21. set {konto.drugie.%player%} to {konto.pierwsze.%player%}
  22. set {_konto} to {konto.pierwsze.%player%}
  23. if arg 1 is "historia":
  24. send "&6Historia"
  25. send "&a- %{konto.pierwsze.%player%}%"
  26. send "&a- %{konto.drugie.%player%}%"
  27. send "&a- %{konto.trzecie.%player%}%"
  28.  
  29.  
  30. command /kontosprawdz [<offline player>] [<text>]:
  31. permission: konto.sprawdz
  32. trigger:
  33. if arg 1 is set:
  34. if arg 2 is not set:
  35. if {konto.dodaj.limit.%arg 1%} is "1":
  36. send "&7Gracz %arg 1%: &6%{konto.dodaj.%arg 1%}%"
  37. else:
  38. send "&cGracz %arg 1% nie dodal jeszcze zadnego konta!"
  39. if arg 2 is "zatwierdz":
  40. add {konto.dodaj.%arg 1%} to {konta::*}
  41. send "&aZatwierdziles konto gracza %arg 1%"
  42. set {konto.dodaj.limit.%arg 1%} to "0"
  43. delete {konto.dodaj.%arg 1%}
  44. if arg 2 is "usun":
  45. set {konto.dodaj.limit.%arg 1%} to "0"
  46. delete {konto.dodaj.%arg 1%}
  47.  
  48. command /kontousun [<text>]:
  49. permission: konto.usun
  50. trigger:
  51. if arg 1 is set:
  52. loop {konta::*}:
  53. if loop-value is arg 1:
  54. remove arg 1 from {konta::*}
  55. send "&aUsunales %arg 1%!"
  56. stop
  57. else:
  58. send "&cNie ma takiego konta!"
  59. stop
  60.  
  61. command /kontolista:
  62. permission: konto.lista
  63. trigger:
  64. loop {konta::*}:
  65. send "%loop-value%"
Advertisement
Add Comment
Please, Sign In to add comment