diff --git a/TShockAPI/Rest/RestManager.cs b/TShockAPI/Rest/RestManager.cs
index 44b33594..50c442cb 100644
--- a/TShockAPI/Rest/RestManager.cs
+++ b/TShockAPI/Rest/RestManager.cs
@@ -300,8 +300,8 @@ namespace TShockAPI
return RestMissingParam("user");
var group = parameters["group"];
- if (string.IsNullOrWhiteSpace(group))
- return RestMissingParam("group");
+ if (string.IsNullOrWhiteSpace(group))
+ group = TShock.Config.DefaultRegistrationGroupName;
var password = parameters["password"];
if (string.IsNullOrWhiteSpace(password))
diff --git a/TShockAPI/Rest/SecureRest.cs b/TShockAPI/Rest/SecureRest.cs
index 2edf3013..3569ac63 100644
--- a/TShockAPI/Rest/SecureRest.cs
+++ b/TShockAPI/Rest/SecureRest.cs
@@ -55,7 +55,7 @@ namespace Rests
}
// TODO: Get rid of this when the old REST permission model is removed.
- if (!TShock.Config.RestUseNewPermissionModel)
+ if (TShock.Config.RestApiEnabled && !TShock.Config.RestUseNewPermissionModel)
{
string warningMessage = string.Concat(
"You're using the old REST permission model which is highly vulnerable in matter of security. ",
@@ -67,7 +67,7 @@ namespace Rests
Console.WriteLine(warningMessage);
Console.ForegroundColor = ConsoleColor.Gray;
}
- else
+ else if (TShock.Config.RestApiEnabled)
{
string warningMessage = string.Concat(
"You're using the new more secure REST permission model which can lead to compatibility problems ",
diff --git a/TShockAPI/TShockAPI.csproj b/TShockAPI/TShockAPI.csproj
index ab4c32bf..e223ac2f 100644
--- a/TShockAPI/TShockAPI.csproj
+++ b/TShockAPI/TShockAPI.csproj
@@ -76,7 +76,9 @@
-
+
+ False
+ .exe
..\TerrariaServerBins\TerrariaServer.exe
@@ -191,7 +193,7 @@
-
+