Initial Comit
The Server has overcome it's early Development Steps. although it still is a bit unstable it works in it's actual state
This commit is contained in:
11
bin/classes/events/listener.js
Normal file
11
bin/classes/events/listener.js
Normal file
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* @param {array} events Die Events die Ausgeführt werden
|
||||
*/
|
||||
function listener(events, event){
|
||||
events.forEach(e => {
|
||||
if(event === e.name) {
|
||||
e.function();
|
||||
}
|
||||
})
|
||||
}
|
||||
module.exports = listener;
|
Reference in New Issue
Block a user