mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
parent
bd3f75cfc5
commit
bdbd8ab0b8
2 changed files with 2 additions and 5 deletions
|
|
@ -42,14 +42,12 @@ namespace MinecraftClient
|
|||
private McTcpClient _handler = null;
|
||||
private ChatBot master = null;
|
||||
private Queue<string> chatQueue = new Queue<string>();
|
||||
private DateTime? lastMessageSentTime = null;
|
||||
private DateTime? lastMessageSentTime = DateTime.MinValue;
|
||||
private bool CanSendTextNow
|
||||
{
|
||||
get
|
||||
{
|
||||
return lastMessageSentTime != null
|
||||
? DateTime.Now > lastMessageSentTime.Value + Settings.botMessageDelay
|
||||
: true;
|
||||
return DateTime.Now > lastMessageSentTime.Value + Settings.botMessageDelay;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue