Removed CheckInventory(int ply) - It doesn't fucking work.
This commit is contained in:
parent
d9df2bf962
commit
9833732c22
1 changed files with 0 additions and 18 deletions
|
|
@ -399,7 +399,6 @@ namespace TShockAPI
|
|||
if (Main.netMode != 2) { return; }
|
||||
int plr = who; //legacy support
|
||||
Tools.ShowMOTD(who);
|
||||
CheckInventory(who);
|
||||
if (HackedHealth(who) && ConfigurationManager.kickCheater && ConfigurationManager.banCheater)
|
||||
{
|
||||
TShock.Ban(who, "Hacked health.");
|
||||
|
|
@ -712,23 +711,6 @@ namespace TShockAPI
|
|||
}
|
||||
return -1;
|
||||
}
|
||||
/// <summary>
|
||||
/// Stop fucking enabling this as a ban reason. Holy fucking hell, it doesn't fucking work.
|
||||
/// </summary>
|
||||
/// <param name="plr"></param>
|
||||
/// <returns></returns>
|
||||
public static bool CheckInventory(int plr)
|
||||
{
|
||||
for (int i = 0; i < 44; i++)
|
||||
{
|
||||
if (Main.player[plr].inventory[i].stack > Main.player[plr].inventory[i].maxStack)
|
||||
{
|
||||
Log.Info(Tools.FindPlayer(plr) + " had " + Main.player[plr].inventory[i].stack.ToString() + " of " + Main.player[plr].inventory[i].name + " which has a max stack of " + Main.player[plr].inventory[i].maxStack.ToString());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool CheckSpawn(int x, int y)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue