Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PortPixel authored Jul 15, 2016
1 parent 5656562 commit f9c9f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ io.on('connection', function (socket) {
if (data[0] === c.adminPass) {
console.log('[ADMIN] ' + currentPlayer.name + ' just logged in as an admin!');
socket.emit('serverMSG', 'Welcome back ' + currentPlayer.name);
socket.broadcast.emit('serverMSG', currentPlayer.name + ' just logged in as admin!');
//socket.broadcast.emit('serverMSG', currentPlayer.name + ' just logged in as admin!');
currentPlayer.admin = true;
} else {
console.log('[ADMIN] ' + currentPlayer.name + ' attempted to log in with incorrect password.');
Expand Down

0 comments on commit f9c9f35

Please sign in to comment.