forked from noxious/server
asset mngr stuff
This commit is contained in:
@ -14,6 +14,11 @@ interface IPayload {
|
||||
export default function (socket: TSocket, io: Server) {
|
||||
socket.on('gm:tile:list', async (data: any, callback: (response: string[]) => void) => {
|
||||
|
||||
if (socket.character?.role !== 'gm') {
|
||||
console.log(`---Character #${socket.character?.id} is not a game master.`);
|
||||
return;
|
||||
}
|
||||
|
||||
// get root path
|
||||
const folder = path.join(process.cwd(), 'public', 'tiles');
|
||||
|
||||
|
Reference in New Issue
Block a user