Probably made the connect cmd case insensitive and other things

This commit is contained in:
Norbi Peti 2016-11-12 01:43:54 +01:00
parent b144a55935
commit 6a4b776c37

View file

@ -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");
}
}