Add method of obtaining a user's class by their username

This commit is contained in:
tgpethan 2020-09-02 10:54:37 +01:00
parent 781a6cc3de
commit cec774fc28

View file

@ -0,0 +1,10 @@
module.exports = function(username) {
let user = null;
for (let i = 0; i < global.users.length; i++) {
if (global.users[i].username == username) {
user = global.users[i];
break;
}
}
return user;
}