Advertisement
Enter212

ModReq

Jan 9th, 2015
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. #ModReq by Enter121
  2. #for NextCraft
  3. command /modconf <text>:
  4. trigger:
  5. if player has permission "modreq.mod":
  6. if arg 1 is "reset":
  7. set {req.num} to "0"
  8. else:
  9. send "&7[&aModReq&7]&c Nie masz uprawnień"
  10. command /modreq <text>:
  11. usage: &5/modreq <treść zgłoszenia>
  12. trigger:
  13. loop all players:
  14. if loop-player has permission "modreq.mod":
  15. send "&7[&aModReq&7]&6 NOWE ZGŁOSZENIE PRZEZ %player%" to loop-player
  16. set {req.num} to {req.num} +1
  17. set {req.%{req.num}%} to "&7[&aModReq&7] |&6%player%&7| %arg 1%"
  18. log "|%player%| %arg 1%" to "modreq.log"
  19. on join:
  20. if player has permission "modreq.mod":
  21. if {req.num} is "0":
  22. exit
  23. else:
  24. send "&7[&aModReq&7]&6 %{req.num}% NIE ODCZYTANE ZGŁOSZENIA" to player
  25. stop
  26. command /check:
  27. trigger:
  28. if player has permission "modreq.mod":
  29. if "%{req.num}%" is "0":
  30. send "&7[&aModReq&7]&6 WSZYSTKIE ZGŁOSZENIA ZOSTAŁY ODCZYTANE" to player
  31. exit
  32. send "==============================" to player
  33. send "%{req.%{req.num}%}%" to player
  34. send "==============================" to player
  35. delete {req.%{req.num}%}
  36. set {req.num} to {req.num} -1
  37. if "%{req.num}%" is "0":
  38. send "&7[&aModReq&7]&6 WSZYSTKIE ZGŁOSZENIA ZOSTAŁY ODCZYTANE" to player
  39. exit
  40. send "&7[&aModReq&7]&6 ZOSTAŁO %{req.num}% NIE ODCZYTANYCH ZGŁOSZEŃ" to player
  41. stop
  42. else:
  43. send "&7[&aModReq&7]&c Nie masz uprawnień"
  44. command /mods:
  45. trigger:
  46. send "&a ADMINISTRACJA ONLINE"
  47. loop all players:
  48. if loop-player has permission "modreq.mod" or "*":
  49. send "&a%loop-player%" to player
  50. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement