O'Reilly logo

A Beginner’s Guide to Writing Minecraft Plugins in JavaScript by Walter Higgins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required