Advertisement
SuperZanti

Untitled

May 31st, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. package com.superzanti.Main;
  2.  
  3. import java.nio.file.Paths;
  4.  
  5. import org.apache.logging.log4j.Logger;
  6.  
  7. import net.minecraftforge.client.event.GuiScreenEvent.ActionPerformedEvent;
  8. import cpw.mods.fml.client.FMLClientHandler;
  9. import cpw.mods.fml.common.FMLLog;
  10. import cpw.mods.fml.common.eventhandler.SubscribeEvent;
  11.  
  12. public class GuiScreenHandler {
  13.  
  14. @SubscribeEvent
  15. public void onActionPerformedPre (ActionPerformedEvent.Pre event) {
  16.  
  17. Logger logger = event.getModLog();
  18. logger.info(Paths.get(".").toAbsolutePath());
  19.  
  20. if (event.button.id == 6001) {
  21. FMLClientHandler.instance().connectToServerAtStartup("192.168.1.58", 62693);
  22. }
  23.  
  24.  
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement