Skip to content

Commit 17f32a5

Browse files
add a config option to remove the init server message
1 parent a24577a commit 17f32a5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Plugin/Config.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
public class Config
44
{
55
public bool SerMethodsAsCommands { get; set; } = false;
6+
7+
public bool SendHelpMessageOnServerInitialization { get; set; } = true;
68
}

Plugin/MainPlugin.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ public override void Disable()
8282

8383
private void OnServerFullyInit()
8484
{
85+
if (Config?.SendHelpMessageOnServerInitialization is false) return;
86+
8587
Logger.Raw(
8688
$"""
8789
Thank you for using ### Scripted Events Reloaded ### by {Author}!
@@ -100,6 +102,7 @@ private static void SendLogo()
100102
Logger.Raw(
101103
"""
102104
#####################################
105+
103106
█████████ ██████████ ███████████
104107
███░░░░░███░░███░░░░░█░░███░░░░░███
105108
░███ ░░░ ░███ █ ░ ░███ ░███
@@ -108,6 +111,7 @@ private static void SendLogo()
108111
███ ░███ ░███ ░ █ ░███ ░███
109112
░░█████████ ██████████ █████ █████
110113
░░░░░░░░░ ░░░░░░░░░░ ░░░░░ ░░░░░
114+
111115
#####################################
112116
113117
This project would not be possible without the help of:

0 commit comments

Comments
 (0)