25w16a singleplayer added

This commit is contained in:
Catfoolyou
2025-04-18 15:42:12 -04:00
parent 44ae27f469
commit 195e0e3a2a
53 changed files with 169865 additions and 7326 deletions

View File

@@ -572,13 +572,13 @@ public class NetServerHandler extends NetHandler
public void handleChat(Packet3Chat par1Packet3Chat)
{
System.out.println("test");
if (this.playerEntity.getChatVisibility() == 2)
{
this.sendPacketToPlayer(new Packet3Chat(StatCollector.translateToLocal(EnumChatFormatting.RED + "chat.cannotSend")));
}
else
{
//this.playerEntity.func_143004_u();
String var2 = par1Packet3Chat.message;
if (var2.length() > 100)
@@ -613,12 +613,12 @@ public class NetServerHandler extends NetHandler
this.mcServer.getConfigurationManager().func_110459_a(var4, false);
}
this.chatSpamThresholdCount += 20;
if (this.chatSpamThresholdCount > 200 && !this.mcServer.getConfigurationManager().isPlayerOpped(this.playerEntity.getCommandSenderName()))
{
this.kickPlayerFromServer("disconnect.spam");
}
// this.chatSpamThresholdCount += 20;
//
// if (this.chatSpamThresholdCount > 200 && !this.mcServer.getConfigurationManager().isPlayerOpped(this.playerEntity.getCommandSenderName()))
// {
// this.kickPlayerFromServer("disconnect.spam");
// }
}
}
}