Posted July 28, 20205 yr Hello, noob minecraft modder here. I want to display a message to all players on day start (think a "Good morning!" message for example), but I'm very lost on the best way to do that. I investigated using the /say command, but it appears that commands are only available if cheat mode is enabled. I'm not quite sure where to look next. (I am also taking pointers on how to hook into whatever existing "day start" event happens. There doesn't seem to be any sort of documented overview of what API is available for mods to hook into??)
July 28, 20205 yr I think you may need to check the time yourself, and use ServerWorld.getServer().getPlayerList() to get all players, then use player.sendMessage() to send the message.
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.