Skip to content

Commit f628139

Browse files
fix
1 parent d00123d commit f628139

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

NWAPI-WelcomeMessage/NWAPI-WelcomeMessage.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<ProjectGuid>{ED826E28-A10D-4F04-94FF-C2405588110B}</ProjectGuid>
88
<OutputType>Library</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>NWAPI_WelcomeMessage</RootNamespace>
11-
<AssemblyName>NWAPI_WelcomeMessage</AssemblyName>
10+
<RootNamespace>moddedmcplayer_NWAPI-WelcomeMessage</RootNamespace>
11+
<AssemblyName>moddedmcplayer_NWAPI-WelcomeMessage</AssemblyName>
1212
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
</PropertyGroup>
@@ -38,6 +38,9 @@
3838
<Reference Include="Assembly-CSharp-firstpass">
3939
<HintPath>$(EXILED_REFERENCES)\Assembly-CSharp-firstpass.dll</HintPath>
4040
</Reference>
41+
<Reference Include="Mirror">
42+
<HintPath>..\..\..\..\..\Steam\steamapps\common\SCP Secret Laboratory Dedi PBeta\SCPSL_Data\Managed\Mirror.dll</HintPath>
43+
</Reference>
4144
<Reference Include="PluginAPI, Version=12.0.0.0, Culture=neutral, processorArchitecture=Amd64">
4245
<HintPath>..\packages\Northwood.PluginAPI.12.0.0-rc.1\lib\net48\PluginAPI.dll</HintPath>
4346
</Reference>

NWAPI-WelcomeMessage/Plugin.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
namespace NWAPI_WelcomeMessage
22
{
3+
using Hints;
34
using MEC;
45
using PluginAPI.Core;
56
using PluginAPI.Core.Attributes;
@@ -8,7 +9,7 @@
89

910
public class Plugin
1011
{
11-
[PluginEntryPoint("WelcomeMessage", "1.0.0", "Displays a welcome message when users join.", "moddedmcplayer")]
12+
[PluginEntryPoint("WelcomeMessage", "1.0.1", "Displays a welcome message when users join.", "moddedmcplayer")]
1213
void Enabled()
1314
{
1415
EventManager.RegisterEvents(this);
@@ -17,9 +18,9 @@ void Enabled()
1718
[PluginEvent(ServerEventType.PlayerJoined)]
1819
void OnPlayerJoin(Player player)
1920
{
20-
Timing.CallDelayed(1f, () =>
21+
Timing.CallDelayed(4f, () =>
2122
{
22-
player.SendBroadcast(Config.WelcomeMessage.Replace("%playername%", player.Nickname), Config.Duration);
23+
player.ReceiveHint(Config.WelcomeMessage.Replace("%playername%", player.Nickname), Config.Duration);
2324
});
2425
}
2526

0 commit comments

Comments
 (0)