Chapter 3Build and Install a Plugin

After completing this chapter you’ll know how to

  • Compile Java source code to .class files, pack them in a jar, and install them on a Minecraft server

  • Run your local server with a new plugin

  • Connect to your local server

Now that you have the tools installed, we’ll build a simple, basic plugin. It won’t do much as plugins go, but it will make sure you can build and run your own plugins, and it will act as starting point (or skeleton) for all the plugins we’ll write in this book.

So how do your typed-in instructions end up running on a Minecraft server? Here’s how the whole process works.

You type Java language instructions (we call that “source code”) and save them into a text file, and then the ...

Get Learn to Program with Minecraft Plugins, 2nd Edition 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.