mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
lastMessageSentTime does not needs to be optional
This commit is contained in:
parent
7ff9d3bb37
commit
a52fb61358
1 changed files with 2 additions and 2 deletions
|
|
@ -43,12 +43,12 @@ namespace MinecraftClient
|
||||||
private ChatBot master = null;
|
private ChatBot master = null;
|
||||||
private List<string> registeredPluginChannels = new List<String>();
|
private List<string> registeredPluginChannels = new List<String>();
|
||||||
private Queue<string> chatQueue = new Queue<string>();
|
private Queue<string> chatQueue = new Queue<string>();
|
||||||
private DateTime? lastMessageSentTime = DateTime.MinValue;
|
private DateTime lastMessageSentTime = DateTime.MinValue;
|
||||||
private bool CanSendTextNow
|
private bool CanSendTextNow
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return DateTime.Now > lastMessageSentTime.Value + Settings.botMessageDelay;
|
return DateTime.Now > lastMessageSentTime + Settings.botMessageDelay;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue