Added in more instantiation of the command handler callback in the other constructors.

This commit is contained in:
Zack Piispanen 2012-06-02 23:34:28 -04:00
parent 5f162bcf43
commit bc3d9fd528

View file

@ -393,6 +393,7 @@ namespace TShockAPI
Index = -1; Index = -1;
FakePlayer = new Player {name = playerName, whoAmi = -1}; FakePlayer = new Player {name = playerName, whoAmi = -1};
Group = new Group(TShock.Config.DefaultGuestGroupName); Group = new Group(TShock.Config.DefaultGuestGroupName);
AwaitingResponse = new Dictionary<string, Action<object>>();
} }
public virtual void Disconnect(string reason) public virtual void Disconnect(string reason)
@ -718,6 +719,7 @@ namespace TShockAPI
public TSRestPlayer() public TSRestPlayer()
{ {
Group = new SuperAdminGroup(); Group = new SuperAdminGroup();
AwaitingResponse = new Dictionary<string, Action<object>>();
} }
public override void SendMessage(string msg) public override void SendMessage(string msg)