Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script options:
- $ init com.mysql.jdbc.Driver
- $ db url jdbc:mysql://localhost:3306/skriptmc
- $ db username root
- $ db password test12345
- options:
- tag: &8[&3ReportSQL&8]
- command /report [<player>] [<text>]:
- trigger:
- if {reportsql::wait::%player%} is true:
- send "{@tag} &cJedno zgloszenie na jedną minute!"
- else:
- send "{@tag} &7Zglaszanie gracza &6%player-arg% &7za &6%arg 2%"
- update "INSERT INTO report (sender, player, reason, date) VALUES ('%player%', '%player-arg%', '%arg 2%', '%now%');"
- send "{@tag} &aGracz zostal pomyślnie zgloszony!"
- set {reportsql::wait::%player%} to true
- wait 60 seconds
- set {reportsql::wait::%player%} to false
- command /bug [<text>]:
- trigger:
- if {bugsql::wait::%player%} is true:
- send "{@tag} &cJedno zgloszenie na jedną minute!"
- else:
- send "{@tag} &7Zglaszanie błędu &6%arg 1%"
- update "INSERT INTO bug (player, bug, date) VALUES ('%player%', '%arg 1%', '%now%');"
- send "{@tag} &aBłąd zostal pomyślnie zgloszony!"
- set {bugsql::wait::%player%} to true
- wait 60 seconds
- set {bugsql::wait::%player%} to false
- on join:
- set {bugsql::wait::%player%} to false
- set {reportsql::wait::%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment