Permalink
Browse files

Correct coloring of join & quit messages

  • Loading branch information...
1 parent 4d96b79 commit 7082009429f1154bcf3f0b65a3914bb3dc5a3b05 @zml2008 zml2008 committed Jul 7, 2012
@@ -73,7 +73,7 @@ public void onPlayerConnect(PlayerConnectEvent event) {
player.kick();
}
} else {
- Spout.getEngine().getEventManager().callDelayedEvent(new PlayerJoinEvent(player, ChatStyle.CYAN + player.getDisplayName() + ChatStyle.CYAN + " has joined the game"));
+ Spout.getEngine().getEventManager().callDelayedEvent(new PlayerJoinEvent(player, ChatStyle.CYAN, player.getDisplayName(), ChatStyle.CYAN, " has joined the game"));
}
} else {
event.getSession().disconnect("Player is already online");
@@ -373,8 +373,7 @@ public boolean disconnect(boolean kick, Object... reason) {
return false;
}
reason = ((PlayerKickEvent) event).getKickReason();
-
- getEngine().getLogger().log(Level.INFO, "Player {0} kicked: {1}", new Object[]{player.getName(), reason});
+ server.getCommandSource().sendMessage("Player ", player.getName(), " kicked: ", reason);
} else {
event = new PlayerLeaveEvent(player, getDefaultLeaveMessage());
}

0 comments on commit 7082009

Please sign in to comment.