Skip to content

Commit

Permalink
Update for 2,1
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiCM committed May 15, 2020
1 parent bf36ada commit 2b889e0
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 35 deletions.
2 changes: 1 addition & 1 deletion LocalisedChat/LocalisedChat.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
40 changes: 9 additions & 31 deletions LocalisedChat/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,23 @@

namespace LocalisedChat
{
[ApiVersion(2, 00)]
[ApiVersion(2, 1)]
public class Plugin : TerrariaPlugin
{
public Config config = new Config();
public Regex TagRegex = new Regex(@"(?<!\\)\[(?<tag>[a-zA-Z]{1,10})(\/(?<options>[^:]+))?:(?<text>.+?)(?<!\\)\]");

public override string Author
{
get
{
return "White";
}
}
public override string Author => "Quicm";

public override string Description
{
get
{
return "Localised chat messages";
}
}
public override string Description => "Localised chat messages";

public override string Name
{
get
{
return "Localised chat";
}
}
public override string Name => "Localised chat";


public override Version Version => System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;

public override Version Version
{
get
{
return new Version(1, 1);
}
}

public Plugin(Main game) : base(game)
public Plugin(Main game) : base(game)
{
Order = 0;
}
Expand Down Expand Up @@ -132,7 +110,7 @@ private void OnChat(ServerChatEventArgs args)

//Send pop-up text of the chat message
NetMessage.SendData((int)PacketTypes.CreateCombatText, -1, -1,
text, (int)msgColor.PackedValue,
Terraria.Localization.NetworkText.FromLiteral(text), (int)msgColor.PackedValue,
p.TPlayer.position.X, p.TPlayer.position.Y + 32);

if (config.RadiusInFeet == -1)
Expand Down
6 changes: 3 additions & 3 deletions LocalisedChat/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LocalisedChat")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.28.0.0")]
Binary file modified Refs/Newtonsoft.Json.dll
Binary file not shown.
Binary file modified Refs/OTAPI.dll
Binary file not shown.
Binary file modified Refs/TShockAPI.dll
Binary file not shown.
Binary file modified Refs/TerrariaServer.exe
Binary file not shown.

0 comments on commit 2b889e0

Please sign in to comment.