mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 08:47:40 +00:00
25w16a singleplayer added
This commit is contained in:
@@ -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");
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user