File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/main/java/dev/hause/squeakerbot/listener Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 77import dev .hause .squeakerbot .command .Command ;
88import dev .hause .squeakerbot .command .CommandManager ;
99import net .minecraft .client .Minecraft ;
10- import net .minecraft .network .play .client .CPacketChatMessage ;
1110import net .minecraftforge .client .event .ClientChatReceivedEvent ;
1211import 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}
You can’t perform that action at this time.
0 commit comments