File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1+ # Essentials 1.5.1
2+ * Fixes
3+ - Fixed crash if the MOTD field is empty
4+
15# Essentials 1.5
26* Features
37 - Added MOTD
Original file line number Diff line number Diff line change 1717
1818namespace Essentials
1919{
20- [ Plugin ( "Essentials" , "1.5" , "cbfdd6ab-4cda-4544-a201-f73efa3d46c0" ) ]
20+ [ Plugin ( "Essentials" , "1.5.1 " , "cbfdd6ab-4cda-4544-a201-f73efa3d46c0" ) ]
2121 public class EssentialsPlugin : TorchPluginBase , IWpfPlugin
2222 {
2323 public EssentialsConfig Config => _config ? . Data ;
@@ -59,7 +59,7 @@ private void MotdOnce(MyEntity obj)
5959 if ( obj is MyCharacter character )
6060 {
6161 var id = character . ControllerInfo ? . ControllingIdentityId ?? 0 ;
62- if ( _motdOnce . Contains ( id ) )
62+ if ( string . IsNullOrEmpty ( Config . Motd ) || _motdOnce . Contains ( id ) )
6363 return ;
6464
6565 Torch . Multiplayer . SendMessage ( Config . Motd , "MOTD" , id ) ;
You can’t perform that action at this time.
0 commit comments