fixed error

This commit is contained in:
Maverick Motherfucker 2011-05-30 13:45:55 -07:00
parent 5683539441
commit a4cf86f853
2 changed files with 2 additions and 2 deletions

View file

@ -124,8 +124,8 @@ namespace TShockAPI
void OnChat(int ply, string msg, HandledEventArgs handler) void OnChat(int ply, string msg, HandledEventArgs handler)
{ {
if (Main.netMode != 2) { return; } if (Main.netMode != 2) { return; }
int x = Main.player[ply].position.X; int x = (int)Main.player[ply].position.X;
int y = Main.player[ply].position.Y; int y = (int)Main.player[ply].position.Y;
if (IsAdmin(ply)) if (IsAdmin(ply))
{ {
if (msg.Length > 5 && msg.Substring(0, 5) == "/kick") if (msg.Length > 5 && msg.Substring(0, 5) == "/kick")