boleknowak

Untitled

Jan 1st, 2016
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. script options:
  2. $ init com.mysql.jdbc.Driver
  3. $ db url jdbc:mysql://localhost:3306/skriptmc
  4. $ db username root
  5. $ db password test12345
  6. options:
  7. tag: &8[&3ReportSQL&8]
  8. command /report [<player>] [<text>]:
  9. trigger:
  10. if {reportsql::wait::%player%} is true:
  11. send "{@tag} &cJedno zgloszenie na jedną minute!"
  12. else:
  13. send "{@tag} &7Zglaszanie gracza &6%player-arg% &7za &6%arg 2%"
  14. update "INSERT INTO report (sender, player, reason, date) VALUES ('%player%', '%player-arg%', '%arg 2%', '%now%');"
  15. send "{@tag} &aGracz zostal pomyślnie zgloszony!"
  16. set {reportsql::wait::%player%} to true
  17. wait 60 seconds
  18. set {reportsql::wait::%player%} to false
  19. command /bug [<text>]:
  20. trigger:
  21. if {bugsql::wait::%player%} is true:
  22. send "{@tag} &cJedno zgloszenie na jedną minute!"
  23. else:
  24. send "{@tag} &7Zglaszanie błędu &6%arg 1%"
  25. update "INSERT INTO bug (player, bug, date) VALUES ('%player%', '%arg 1%', '%now%');"
  26. send "{@tag} &aBłąd zostal pomyślnie zgloszony!"
  27. set {bugsql::wait::%player%} to true
  28. wait 60 seconds
  29. set {bugsql::wait::%player%} to false
  30. on join:
  31. set {bugsql::wait::%player%} to false
  32. set {reportsql::wait::%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment