Removed not needed chat message about player leaving mage.

This commit is contained in:
LevelX2 2014-04-26 18:45:27 +02:00
parent 7e6c1ede2a
commit bc6f0f65bc

View file

@ -126,11 +126,10 @@ public class UserManager {
public void removeUser(UUID userId, User.DisconnectReason reason) {
User user = users.get(userId);
if (user != null) {
logger.info(new StringBuilder("Remove user: ").append(user.getName())
logger.debug(new StringBuilder("Remove user: ").append(user.getName())
.append(" userId: ").append(userId)
.append(" sessionId: ").append(user.getSessionId())
.append(" Reason: ").append(reason.toString()));
ChatManager.getInstance().broadcast(userId, new StringBuilder("has disconnected (").append(reason.toString()).append(")").toString(), MessageColor.BLACK);
ChatManager.getInstance().removeUser(userId, reason);
users.get(userId).kill(reason);
users.remove(userId);