From e82d6481df26374969a39d698a7cc972edecf2a3 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 23 Jan 2016 17:37:25 +0100 Subject: [PATCH] changed command to show history from /info to /history (or /h). --- Mage.Server/src/main/java/mage/server/ChatManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Mage.Server/src/main/java/mage/server/ChatManager.java b/Mage.Server/src/main/java/mage/server/ChatManager.java index 1b5e1a212d..117f845575 100644 --- a/Mage.Server/src/main/java/mage/server/ChatManager.java +++ b/Mage.Server/src/main/java/mage/server/ChatManager.java @@ -121,8 +121,8 @@ public class ChatManager { private boolean performUserCommand(User user, String message, UUID chatId) { String command = message.substring(1).trim().toUpperCase(Locale.ENGLISH); - if (command.startsWith("I ") || command.startsWith("INFO ")) { - message = UserManager.getInstance().getUserHistory(message.substring(command.startsWith("I ") ? 3 : 6)); + if (command.startsWith("H ") || command.startsWith("HISTORY ")) { + message = UserManager.getInstance().getUserHistory(message.substring(command.startsWith("H ") ? 3 : 8)); chatSessions.get(chatId).broadcastInfoToUser(user, message); return true; } @@ -147,9 +147,9 @@ public class ChatManager { } if (command.equals("L") || command.equals("LIST")) { message += new StringBuilder("
List of commands:") - .append("
\\info [username] - shows the history of a player") - .append("
\\list - Show a list of commands") - .append("
\\whisper [player name] [text] - whisper to the player with the given name").toString(); + .append("
\\history or \\h [username] - shows the history of a player") + .append("
\\list or \\l - Show a list of commands") + .append("
\\whisper or \\w [player name] [text] - whisper to the player with the given name").toString(); chatSessions.get(chatId).broadcastInfoToUser(user, message); return true; }