mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Removed not needed chat message about player leaving mage.
This commit is contained in:
parent
7e6c1ede2a
commit
bc6f0f65bc
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue