From 6a4b776c3783af1ed8e6b100d3d2b495d02462fc Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sat, 12 Nov 2016 01:43:54 +0100 Subject: [PATCH] Probably made the connect cmd case insensitive and other things --- .../discordplugin/commands/ConnectCommand.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/buttondevteam/discordplugin/commands/ConnectCommand.java b/src/main/java/buttondevteam/discordplugin/commands/ConnectCommand.java index 0ed98ed..a2b149d 100644 --- a/src/main/java/buttondevteam/discordplugin/commands/ConnectCommand.java +++ b/src/main/java/buttondevteam/discordplugin/commands/ConnectCommand.java @@ -56,13 +56,13 @@ public class ConnectCommand extends DiscordCommandBase { TBMCCoreAPI.SendException("An error occured while connecting a Discord account!", e); DiscordPlugin.sendMessageToChannel(message.getChannel(), "An internal error occured!\n" + e); } - WaitingToConnect.put(args, message.getAuthor().getID()); + WaitingToConnect.put(p.getName(), message.getAuthor().getID()); DiscordPlugin.sendMessageToChannel(message.getChannel(), "Pending connection - accept connection in Minecraft from the account " + args - + " before the server gets restarted."); + + " before the server gets restarted. You can also adjust the Minecraft name you want to connect to with the same command."); if (p.isOnline()) - ((Player) p).sendMessage( - "§bTo connect with the Discord account " + message.getAuthor().getName() + " do /discord accept"); + ((Player) p).sendMessage("§bTo connect with the Discord account " + message.getAuthor().getName() + "#" + + message.getAuthor().getDiscriminator() + " do /discord accept"); } }