Compare commits

..

No commits in common. "main" and "v0.2.0" have entirely different histories.
main ... v0.2.0

View file

@ -34,7 +34,7 @@ namespace Whisper;
public class Whisper : BasePlugin, IPluginConfig<WhisperConfig> public class Whisper : BasePlugin, IPluginConfig<WhisperConfig>
{ {
public override string ModuleName => "Whisper"; public override string ModuleName => "Whisper";
public override string ModuleVersion => "0.2.1"; public override string ModuleVersion => "0.2.0";
public override string ModuleAuthor => "astra"; public override string ModuleAuthor => "astra";
public override string ModuleDescription => "Private messages between players"; public override string ModuleDescription => "Private messages between players";
@ -116,11 +116,8 @@ public class Whisper : BasePlugin, IPluginConfig<WhisperConfig>
_writer.Start(); _writer.Start();
} }
// Only on a hot reload: at server start nobody's connected yet, and the player list can't be foreach (var player in Humans())
// read before the server has set up (it throws). Everyone's blocks load as they join. LoadBlocks(player.SteamID);
if (hotReload)
foreach (var player in Humans())
LoadBlocks(player.SteamID);
} }
public override void Unload(bool hotReload) public override void Unload(bool hotReload)