REST endpoint /v2/users/activelist now null checks and works with 0 players.
Fixes #362
This commit is contained in:
parent
d72dc36580
commit
ee20946cdd
3 changed files with 1464 additions and 1460 deletions
|
|
@ -48,5 +48,5 @@ using System.Runtime.InteropServices;
|
|||
// Build Number
|
||||
// MMdd of the build
|
||||
|
||||
[assembly: AssemblyVersion("3.7.0.0204")]
|
||||
[assembly: AssemblyFileVersion("3.7.0.0204")]
|
||||
[assembly: AssemblyVersion("3.7.0.0209")]
|
||||
[assembly: AssemblyFileVersion("3.7.0.0209")]
|
||||
|
|
|
|||
|
|
@ -161,6 +161,10 @@ namespace TShockAPI
|
|||
string playerlist = "";
|
||||
foreach (var TSPlayer in TShock.Players)
|
||||
{
|
||||
if (TSPlayer == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
playerlist += playerlist == "" ? TSPlayer.UserAccountName : "\t" + TSPlayer.UserAccountName;
|
||||
}
|
||||
var returnBlock = new Dictionary<string, string>();
|
||||
|
|
|
|||
2916
TShockAPI/TShock.cs
2916
TShockAPI/TShock.cs
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue