Mono compatibility
This commit is contained in:
parent
075a909e0a
commit
57f45e12bf
5 changed files with 9 additions and 13 deletions
|
|
@ -198,6 +198,7 @@ namespace TShockAPI
|
||||||
add(Permissions.hardmode, StartHardMode, "hardmode");
|
add(Permissions.hardmode, StartHardMode, "hardmode");
|
||||||
add(Permissions.hardmode, DisableHardMode, "stophardmode", "disablehardmode");
|
add(Permissions.hardmode, DisableHardMode, "stophardmode", "disablehardmode");
|
||||||
add(Permissions.cfg, ServerInfo, "stats");
|
add(Permissions.cfg, ServerInfo, "stats");
|
||||||
|
add(null, ExploitTest, "exploit");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool HandleCommand(TSPlayer player, string text)
|
public static bool HandleCommand(TSPlayer player, string text)
|
||||||
|
|
@ -1068,7 +1069,7 @@ namespace TShockAPI
|
||||||
args.Player.SendMessage("Can't spawn Wall of Flesh!", Color.Red);
|
args.Player.SendMessage("Can't spawn Wall of Flesh!", Color.Red);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
NPC.SpawnWOF(new Microsoft.Xna.Framework.Vector2(args.Player.X, args.Player.Y));
|
NPC.SpawnWOF(new Vector2(args.Player.X, args.Player.Y));
|
||||||
TShock.Utils.Broadcast(string.Format("{0} has spawned Wall of Flesh!", args.Player.Name));
|
TShock.Utils.Broadcast(string.Format("{0} has spawned Wall of Flesh!", args.Player.Name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2865,5 +2866,11 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion Cheat Comamnds
|
#endregion Cheat Comamnds
|
||||||
|
|
||||||
|
public static void ExploitTest(CommandArgs args)
|
||||||
|
{
|
||||||
|
var proj = Projectile.NewProjectile(args.Player.TileX, args.Player.TileY, 0f, 0f, 23, 99, 0f);
|
||||||
|
args.Player.SendData(PacketTypes.ProjectileNew, "", proj);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,6 @@ using Terraria;
|
||||||
|
|
||||||
using TShockAPI.Net;
|
using TShockAPI.Net;
|
||||||
|
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
|
||||||
|
|
||||||
namespace TShockAPI
|
namespace TShockAPI
|
||||||
{
|
{
|
||||||
public class TSPlayer
|
public class TSPlayer
|
||||||
|
|
@ -293,11 +291,6 @@ namespace TShockAPI
|
||||||
SendMessage(msg, color.R, color.G, color.B);
|
SendMessage(msg, color.R, color.G, color.B);
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void SendMessage(string msg, Microsoft.Xna.Framework.Color color)
|
|
||||||
{
|
|
||||||
SendMessage(msg, color.R, color.G, color.B);
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void SendMessage(string msg, byte red, byte green, byte blue)
|
public virtual void SendMessage(string msg, byte red, byte green, byte blue)
|
||||||
{
|
{
|
||||||
SendData(PacketTypes.ChatText, msg, 255, red, green, blue);
|
SendData(PacketTypes.ChatText, msg, 255, red, green, blue);
|
||||||
|
|
|
||||||
|
|
@ -55,9 +55,6 @@
|
||||||
<Reference Include="HttpServer">
|
<Reference Include="HttpServer">
|
||||||
<HintPath>..\HttpBins\HttpServer.dll</HintPath>
|
<HintPath>..\HttpBins\HttpServer.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
|
|
||||||
<Reference Include="Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
|
|
||||||
<Reference Include="Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
|
|
||||||
<Reference Include="MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
<Reference Include="MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\SqlBins\MySql.Data.dll</HintPath>
|
<HintPath>..\SqlBins\MySql.Data.dll</HintPath>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
@echo off
|
set pluginspath=I:\Program Files (x86)\Steam\steamapps\common\terraria\serverplugins\
|
||||||
set pluginspath=C:\Program Files (x86)\Steam\steamapps\common\terraria\serverplugins\
|
|
||||||
IF NOT EXIST "%pluginspath%" GOTO SkipCopy
|
IF NOT EXIST "%pluginspath%" GOTO SkipCopy
|
||||||
attrib -r "%pluginspath%TShockAPI.dll"
|
attrib -r "%pluginspath%TShockAPI.dll"
|
||||||
attrib -r "%pluginspath%TShockAPI.pdb"
|
attrib -r "%pluginspath%TShockAPI.pdb"
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue