Fixed kick.

This commit is contained in:
Shank 2011-05-30 01:30:47 -06:00
parent f87a14577e
commit dfa89f28f1

View file

@ -73,7 +73,7 @@ namespace TShockAPI
if (msg.Length > 5 && msg.Substring(0, 5) == "/kick")
{
string plStr = msg.Remove(0, 5).Trim();
if (FindPlayer(plStr) == -1 || plStr == "")
if (!(FindPlayer(plStr) == -1 || plStr == ""))
{
Kick(FindPlayer(plStr), "You were kicked.");
Broadcast(plStr + " was kicked by " + FindPlayer(ply));
@ -101,7 +101,7 @@ namespace TShockAPI
void OnPreInit()
{
SetupConfig();
}
void OnPostInit()