Skip to content

Commit

Permalink
-update for lateset version of seserverextender, added suppression op…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
DraygoKorvan committed Aug 7, 2014
1 parent 8cccab7 commit 2f8de16
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 6 deletions.
Binary file modified Libraries/SEModAPI.dll
Binary file not shown.
Binary file modified Libraries/SEModAPIExtensions.dll
Binary file not shown.
Binary file modified Libraries/SEModAPIInternal.dll
Binary file not shown.
Binary file modified Libraries/SEServerExtender.exe
Binary file not shown.
Binary file modified Libraries/Sandbox.Common.XmlSerializers.dll
Binary file not shown.
Binary file modified Libraries/Sandbox.Common.dll
Binary file not shown.
Binary file modified Libraries/VRage.Common.dll
Binary file not shown.
Binary file modified Libraries/VRage.Math.dll
Binary file not shown.
34 changes: 30 additions & 4 deletions SEMotd/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public int motdRepeatSuppress
set { if (value > 0) m_motdRepeatSuppress = value; else m_motdRepeatSuppress = 1; }
}
}
public class SEMotd : PluginBase, IChatEventHandler , IPlayerEventHandler
public class SEMotd : PluginBase, IChatEventHandler
{

#region "Attributes"
Expand Down Expand Up @@ -390,15 +390,16 @@ public void OnChatSent(SEModAPIExtensions.API.ChatManager.ChatEvent obj)
return; //no handling for motd right now
}

public void OnPlayerJoined(ulong nothing, CharacterEntity character)
/* public void OnPlayerJoined(ulong steamid, CharacterEntity character)
{
if(onJoinMessage)
{
LogManager.APILog.WriteLineAndConsole("Motd: Player connected, onPlayerJoined fired: " + steamid.ToString());
try
{
if (character.SteamId > 0)
if (steamid > 0)
{
Thread T = new Thread(() => ChatManager.Instance.SendPrivateChatMessage(character.SteamId, motd));
Thread T = new Thread(() => ChatManager.Instance.SendPrivateChatMessage(steamid, motd));
T.Start();
}
}
Expand All @@ -410,6 +411,31 @@ public void OnPlayerJoined(ulong nothing, CharacterEntity character)
}
}
public void OnPlayerLeft(ulong nothing, CharacterEntity character)
{
return;
}*/

public void OnPlayerJoined(ulong steamId)
{
if (onJoinMessage)
{
LogManager.APILog.WriteLineAndConsole("Motd: Player connected, onPlayerJoined fired: " + steamId.ToString());
try
{
if (steamId > 0)
{
Thread T = new Thread(() => ChatManager.Instance.SendPrivateChatMessage(steamId, motd));
T.Start();
}
}
catch (Exception ex)
{
if (SandboxGameAssemblyWrapper.IsDebugging)
LogManager.APILog.WriteLineAndConsole("Could not start private message thread. " + ex.ToString());
}
}
}
public void OnPlayerLeft(ulong steamId)
{
return;
}
Expand Down
4 changes: 2 additions & 2 deletions SEMotd/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("0.2.2.1")]
[assembly: AssemblyFileVersion("0.2.2.1")]
[assembly: AssemblyVersion("0.2.2.3")]
[assembly: AssemblyFileVersion("0.2.2.3")]
Binary file modified SEMotd/bin/Debug/Sandbox.Common.XmlSerializers.dll
Binary file not shown.
Binary file added SEMotd/bin/Debug/VRage.Math.dll
Binary file not shown.

0 comments on commit 2f8de16

Please sign in to comment.