Posted July 24, 201510 yr I'm trying to make my mod say a message when the player joins. But, I want it to be its own class. How can I set it up?
July 24, 201510 yr Author PlayerLoginEvent - and this has nothing to do with classes. This is what I have and its not working @SubscribeEvent public void PlayerLoginEvent(PlayerEvent.PlayerLoggedInEvent event) { String welcome = EnumChatFormatting.YELLOW + "Thank you for using Crafting is a Breeze!"; event.player.addChatComponentMessage(new ChatComponentText(welcome)); }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.