Added in more instantiation of the command handler callback in the other constructors.
This commit is contained in:
parent
5f162bcf43
commit
bc3d9fd528
1 changed files with 2 additions and 0 deletions
|
|
@ -393,6 +393,7 @@ namespace TShockAPI
|
|||
Index = -1;
|
||||
FakePlayer = new Player {name = playerName, whoAmi = -1};
|
||||
Group = new Group(TShock.Config.DefaultGuestGroupName);
|
||||
AwaitingResponse = new Dictionary<string, Action<object>>();
|
||||
}
|
||||
|
||||
public virtual void Disconnect(string reason)
|
||||
|
|
@ -718,6 +719,7 @@ namespace TShockAPI
|
|||
public TSRestPlayer()
|
||||
{
|
||||
Group = new SuperAdminGroup();
|
||||
AwaitingResponse = new Dictionary<string, Action<object>>();
|
||||
}
|
||||
|
||||
public override void SendMessage(string msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue