Merge branch 'general-devel' of https://github.com/nyxstudios/TShock into general-devel
This commit is contained in:
commit
46ab25de58
5 changed files with 19 additions and 5 deletions
|
|
@ -61,7 +61,11 @@ namespace TShockAPI
|
|||
if (worldpath != null && !Directory.Exists(worldpath))
|
||||
Directory.CreateDirectory(worldpath);
|
||||
|
||||
TSPlayer.All.SendInfoMessage("Server map saving, potential lag spike.");
|
||||
if (TShock.Config.ShowBackupAutosaveMessages)
|
||||
{
|
||||
TSPlayer.All.SendInfoMessage("Server map saving, potential lag spike.");
|
||||
|
||||
}
|
||||
Console.WriteLine("Backing up world...");
|
||||
|
||||
SaveManager.Instance.SaveWorld();
|
||||
|
|
|
|||
|
|
@ -436,6 +436,8 @@ namespace TShockAPI
|
|||
[Description("Enable the DCU. Very dangerous; can destroy world without consequence.")] public bool
|
||||
VeryDangerousDoNotChangeEnableDrillContainmentUnit = false;
|
||||
|
||||
[Description("Show backup autosave messages.")] public bool ShowBackupAutosaveMessages = true;
|
||||
|
||||
/// <summary>
|
||||
/// Reads a configuration file from a given path
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ namespace TShockAPI.DB
|
|||
throw new UserNotExistException(user.Name);
|
||||
|
||||
// Update player group reference for any logged in player
|
||||
foreach (var player in TShock.Players.Where(p => null != p && p.User.Name == user.Name))
|
||||
foreach (var player in TShock.Players.Where(p => p != null && p.User != null && p.User.Name == user.Name))
|
||||
{
|
||||
player.Group = grp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue