fixed error
This commit is contained in:
parent
5683539441
commit
a4cf86f853
2 changed files with 2 additions and 2 deletions
|
|
@ -124,8 +124,8 @@ namespace TShockAPI
|
|||
void OnChat(int ply, string msg, HandledEventArgs handler)
|
||||
{
|
||||
if (Main.netMode != 2) { return; }
|
||||
int x = Main.player[ply].position.X;
|
||||
int y = Main.player[ply].position.Y;
|
||||
int x = (int)Main.player[ply].position.X;
|
||||
int y = (int)Main.player[ply].position.Y;
|
||||
if (IsAdmin(ply))
|
||||
{
|
||||
if (msg.Length > 5 && msg.Substring(0, 5) == "/kick")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue