Skip to content

Commit 4d864ec

Browse files
Remove useless method and cleanup
1 parent fa659d2 commit 4d864ec

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/dev/hause/squeakerbot/listener/ChatListener.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import dev.hause.squeakerbot.command.Command;
88
import dev.hause.squeakerbot.command.CommandManager;
99
import net.minecraft.client.Minecraft;
10-
import net.minecraft.network.play.client.CPacketChatMessage;
1110
import net.minecraftforge.client.event.ClientChatReceivedEvent;
1211
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
1312

@@ -25,7 +24,7 @@ public void onChat(ClientChatReceivedEvent event) {
2524

2625
public void calcCommand(String input) {
2726
Random random = new Random();
28-
int waitTime = random.nextInt((3000 - 2000) + 1) + 2000;
27+
int waitTime = random.nextInt(3000);
2928
for(Command c : CommandManager.commands) {
3029
if(StringUtils.containsIgnoreCase(input, c.getCommand())) {
3130
Timer timer = new Timer();
@@ -39,9 +38,5 @@ public void run() {
3938
}
4039
}
4140
}
42-
43-
public void sendMessage(String s) {
44-
mc.player.connection.sendPacket(new CPacketChatMessage(s));
45-
}
4641

4742
}

0 commit comments

Comments
 (0)