Implemented tileCut tiles bypass range check, Incorrect passwords now resend a better response. Thanks you IRC guys.
This commit is contained in:
parent
b442e64c4b
commit
873cba84eb
1 changed files with 12 additions and 2 deletions
|
|
@ -308,6 +308,11 @@ namespace TShockAPI
|
|||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
TShock.Utils.ForceKick(args.Player, "Incorrect Account Password, use the password you created with /register");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(TShock.Config.ServerPassword))
|
||||
{
|
||||
|
|
@ -319,9 +324,14 @@ namespace TShockAPI
|
|||
NetMessage.SendData((int)PacketTypes.WorldInfo, args.Player.Index);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
TShock.Utils.ForceKick(args.Player, "Incorrect Server Password");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
TShock.Utils.ForceKick(args.Player, "Incorrect Password");
|
||||
TShock.Utils.ForceKick(args.Player, "Bad Password Attempt");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -624,7 +634,7 @@ namespace TShockAPI
|
|||
return true;
|
||||
}
|
||||
|
||||
if (tiletype == 127 && type == 0) //Ice Block Kill, Bypass range checks and such
|
||||
if ((tiletype == 127 || Main.tileCut[tiletype]) && type == 0) //Ice Block Kill, Bypass range checks and such
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue