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)
|
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")
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue