OKAY, I does not use /login command, replace /login to /exp ok?
IS THIS OK?
package org.meowcat.autocommadner;
import net.minecraft.client.Minecraft;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import java.io.*;
import java.lang.reflect.Method;
import java.util.Properties;
public class JoinEvent {
private Properties prop = new Properties();
JoinEvent() {
MinecraftForge.EVENT_BUS.register(this);
FMLCommonHandler.instance().bus().register(this);
}
@SideOnly(Side.CLIENT)
@SubscribeEvent
public void PlayerJoinGame(TickEvent.ClientTickEvent event) throws IOException {
try{
Class mc = Class.forName(Minecraft.class.getName());
Method[] methods = mc.getMethods();
for (Method method : methods){
Main.logger.info(method.getName());
}
} catch (ClassNotFoundException e ) {
e.printStackTrace();
}
Minecraft.getMinecraft().player.sendChatMessage("/exp");
}
}