mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-19 12:53:27 +02:00
19 lines
376 B
JavaScript
19 lines
376 B
JavaScript
module.exports = function() {
|
|
|
|
var connected = "connected";
|
|
var error = "error";
|
|
|
|
createjs.Sound.registerSound("/sounds/connected.mp3", connected);
|
|
createjs.Sound.registerSound("/sounds/error.mp3", error);
|
|
|
|
return {
|
|
connected: function() {
|
|
createjs.Sound.play(connected);
|
|
},
|
|
error: function() {
|
|
createjs.Sound.play(error);
|
|
}
|
|
};
|
|
|
|
};
|