Chapter 8. Greeting Players
In this chapter, you’ll change the Minecraft game for all players. The best plugins enhance the Minecraft experience and at the same time feel like they are an intrinsic part of the game. In this plugin, each player will be greeted with a new random message each time they join the server. This will be the first plugin that uses event-driven programming, which is a way to listen and react to happenings or events in the game. Along the way, you’ll learn about arrays, a special type in JavaScript for storing lists of items.
Event-Driven Programming
In the early days of programming there was no such thing as event-driven programming. Programs were started and ran to completion; then they exited. If your program needed ...
Get A Beginner’s Guide to Writing Minecraft Plugins in JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.