Probably made the connect cmd case insensitive and other things
This commit is contained in:
parent
b144a55935
commit
6a4b776c37
1 changed files with 4 additions and 4 deletions
|
@ -56,13 +56,13 @@ public class ConnectCommand extends DiscordCommandBase {
|
||||||
TBMCCoreAPI.SendException("An error occured while connecting a Discord account!", e);
|
TBMCCoreAPI.SendException("An error occured while connecting a Discord account!", e);
|
||||||
DiscordPlugin.sendMessageToChannel(message.getChannel(), "An internal error occured!\n" + 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(),
|
DiscordPlugin.sendMessageToChannel(message.getChannel(),
|
||||||
"Pending connection - accept connection in Minecraft from the account " + args
|
"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())
|
if (p.isOnline())
|
||||||
((Player) p).sendMessage(
|
((Player) p).sendMessage("§bTo connect with the Discord account " + message.getAuthor().getName() + "#"
|
||||||
"§bTo connect with the Discord account " + message.getAuthor().getName() + " do /discord accept");
|
+ message.getAuthor().getDiscriminator() + " do /discord accept");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue