Advertisement
Guest User

Untitled

a guest
Oct 16th, 2018
1,048
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. on load:
  2. wait 1 tick
  3. set {Chat.sql} to the database "mysql://localhost:Port/Chat?user=minecraft&password=PASSWORT&useSSL=false"
  4.  
  5. on chat:
  6. execute "INSERT INTO `Chat` (Name,Chat,Server) VALUES (%name of player%,%message%,'UFC')" in {Chat.sql}
  7.  
  8. every 10 ticks:
  9. execute "SELECT * FROM Chat WHERE Server = 'Build'" in {Chat.sql} and store result in {_output::*}
  10. if {_output::Chat::*} is set:
  11. broadcast "&b[Build] &7%{_output::Name::*}% &8» &r%{_output::Chat::*}%"
  12. execute "DELETE FROM Chat WHERE Server = 'Build'" in {Chat.sql}
  13. else:
  14. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement