Guest User

Untitled

a guest
Oct 16th, 2018
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 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%,'Build')" in {Chat.sql}
  7.  
  8. every 10 ticks:
  9. execute "SELECT * FROM Chat WHERE Server = 'UFC'" in {Chat.sql} and store result in {_output::*}
  10. if {_output::Chat::*} is set:
  11. broadcast "&b[UFC] &7%{_output::Name::*}% &8» &r%{_output::Chat::*}%"
  12. execute "DELETE FROM Chat WHERE Server = 'UFC'" in {Chat.sql}
  13. else:
  14. stop
Add Comment
Please, Sign In to add comment