Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.XxDanielMCYTxX.hypixelchat1;
- import net.minecraft.client.Minecraft;
- import net.minecraftforge.client.ClientCommandHandler;
- import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
- import net.minecraftforge.fml.common.gameevent.InputEvent.KeyInputEvent;
- public class KeyInputHandler
- {
- @SubscribeEvent
- public void onKeyInput(KeyInputEvent event)
- {
- if (Keybinds.hello.isPressed())
- {
- Minecraft.getMinecraft().thePlayer.sendChatMessage("/chat p");
- // Which one of those Codes Suppose to send to the server?
- // The Custom Command i wanna send to the server "/chat p" which Switches Chats on that specific Server.
- ClientCommandHandler.instance.executeCommand(Minecraft.getMinecraft().thePlayer, "/chat p");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment