Added the /settle command, which is just like "settle" from the console.
This commit is contained in:
parent
e70a1cfcef
commit
574573f0ba
2 changed files with 16 additions and 2 deletions
|
|
@ -152,6 +152,7 @@ namespace TShockAPI
|
|||
add(Permissions.cfg, ShowConfiguration, "showconfig");
|
||||
add(Permissions.cfg, ServerPassword, "serverpassword");
|
||||
add(Permissions.cfg, Save, "save");
|
||||
add(Permissions.cfg, Settle, "settle");
|
||||
add(Permissions.cfg, MaxSpawns, "maxspawns");
|
||||
add(Permissions.cfg, SpawnRate, "spawnrate");
|
||||
add(Permissions.time, Time, "time");
|
||||
|
|
@ -1580,6 +1581,19 @@ namespace TShockAPI
|
|||
SaveWorld.Start();
|
||||
}
|
||||
|
||||
private static void Settle(CommandArgs args)
|
||||
{
|
||||
|
||||
if (Liquid.panicMode)
|
||||
{
|
||||
args.Player.SendMessage("Liquid is already settling!", Color.Red);
|
||||
return;
|
||||
}
|
||||
Liquid.StartPanic();
|
||||
Tools.Broadcast("Settling all liquids...");
|
||||
|
||||
}
|
||||
|
||||
private static void MaxSpawns(CommandArgs args)
|
||||
{
|
||||
if (args.Parameters.Count != 1)
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\serverplugins\</OutputPath>
|
||||
<OutputPath>..\..\..\Downloads\TShock 3.3.4.924\ServerPlugins\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
|
|
@ -181,7 +181,7 @@
|
|||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<UserProperties BuildVersion_IncrementBeforeBuild="False" BuildVersion_StartDate="2011/6/17" BuildVersion_BuildVersioningStyle="None.None.None.MonthAndDayStamp" BuildVersion_BuildAction="Both" BuildVersion_UpdateFileVersion="True" BuildVersion_UpdateAssemblyVersion="True" />
|
||||
<UserProperties BuildVersion_UpdateAssemblyVersion="True" BuildVersion_UpdateFileVersion="True" BuildVersion_BuildAction="Both" BuildVersion_BuildVersioningStyle="None.None.None.MonthAndDayStamp" BuildVersion_StartDate="2011/6/17" BuildVersion_IncrementBeforeBuild="False" />
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue