Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct coloring of join & quit messages

  • Loading branch information...
commit 7082009429f1154bcf3f0b65a3914bb3dc5a3b05 1 parent 4d96b79
@zml2008 zml2008 authored
View
2  src/main/java/org/spout/engine/listener/SpoutListener.java
@@ -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");
View
3  src/main/java/org/spout/engine/protocol/SpoutSession.java
@@ -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());
}
Please sign in to comment.
Something went wrong with that request. Please try again.