SoggyMustache

Untitled

Apr 13th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. package package.package;
  2.  
  3. import java.util.Random;
  4.  
  5. import net.minecraft.entity.player.EntityPlayer;
  6. import net.minecraft.util.text.TextComponentBase;
  7. import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
  8. import net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;
  9.  
  10. public class LogHandler
  11. {
  12. private final String PREFIX = "-> ";
  13.  
  14. @SubscribeEvent
  15. public void onPlayerLogin(PlayerLoggedInEvent e)
  16. {
  17. System.out.println("Hi");
  18. EntityPlayer player = (EntityPlayer) e.player;
  19. if (ConfigurationHandler.canDisplay)
  20. {
  21. if (!player.worldObj.isRemote)
  22. {
  23. TextComponentBase prefix = new TextComponentBase("Thank you for downloading Mod");
  24.  
  25. //ConfigurationHandler.hasDisplayedOnce = true;
  26. }
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment