Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package package.package;
- import java.util.Random;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.util.text.TextComponentBase;
- import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
- import net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;
- public class LogHandler
- {
- private final String PREFIX = "-> ";
- @SubscribeEvent
- public void onPlayerLogin(PlayerLoggedInEvent e)
- {
- System.out.println("Hi");
- EntityPlayer player = (EntityPlayer) e.player;
- if (ConfigurationHandler.canDisplay)
- {
- if (!player.worldObj.isRemote)
- {
- TextComponentBase prefix = new TextComponentBase("Thank you for downloading Mod");
- //ConfigurationHandler.hasDisplayedOnce = true;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment