O'Reilly logo

Learn to Program with Minecraft Plugins, 2nd Edition by Andy Hunt

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

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