Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- wait 1 tick
- set {Chat.sql} to the database "mysql://localhost:Port/Chat?user=minecraft&password=PASSWORT&useSSL=false"
- on chat:
- execute "INSERT INTO `Chat` (Name,Chat,Server) VALUES (%name of player%,%message%,'Build')" in {Chat.sql}
- every 10 ticks:
- execute "SELECT * FROM Chat WHERE Server = 'UFC'" in {Chat.sql} and store result in {_output::*}
- if {_output::Chat::*} is set:
- broadcast "&b[UFC] &7%{_output::Name::*}% &8» &r%{_output::Chat::*}%"
- execute "DELETE FROM Chat WHERE Server = 'UFC'" in {Chat.sql}
- else:
- stop
Add Comment
Please, Sign In to add comment