Free Sample
+ Collection

Building Minecraft Server Modifications

Starting
Cody M. Sommer

Discover how to program your own server plugins and augment your Minecraft server with Bukkit
$17.99
$29.99
RRP $17.99
RRP $29.99
eBook
Print + eBook

Want this title & more?

$16.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849696005
Paperback142 pages

About This Book

  • Create your own Minecraft server mods
  • Set up a Bukkit server that all your Minecraft friends can play on
  • Step by step instructions guide you through the creation of several unique mods

Who This Book Is For

Building Minecraft Server Modifications is great for anyone who is interested in customizing their Minecraft server. Whether you are new to programming, Java, Bukkit, or even Minecraft itself, this book has you covered. All you need is a valid Minecraft account. If you are interested in software development then this book will help you get started. If you are simply interested in playing Minecraft with your friends then this book will help you make that experience even more enjoyable.

Table of Contents

Chapter 1: Deploying a CraftBukkit Server
Installation
Setup
Minecraft/Bukkit server commands
Port forwarding
Summary
Chapter 2: Learning the Bukkit API
Introduction to APIs
The Bukkit API documentation
Navigating the Bukkit API documentation
Understanding the Java documentation
Exploring Bukkit API
Summary
Chapter 3: Creating Your First Bukkit Plugin
Installing an IDE
Creating a new project
Adding Bukkit as a library
The essentials of a Bukkit plugin
Making and calling new methods
Expanding your code
Summary
Chapter 4: Testing on the CraftBukkit Server
Building the JAR file
Installing your plugin
Testing your plugin
Testing new versions of your plugin
Summary
Chapter 5: Plugin Commands
Adding a command to plugin.yml
Programming the command actions
Assigning the executor for the command
Summary
Chapter 6: Player Permissions
The benefits of permissions
Understanding permission nodes
Adding a permission node to plugin.yml
Assigning a permission node to a plugin command
Testing player permissions
Using a third-party permissions plugin
Using permission nodes throughout your plugins
Summary
Chapter 7: The Bukkit Event System
Choosing an event
Registering an event listener
Listening for an event
Canceling an event
Communicating among events
Modifying an event as it occurs
Creating more plugins on your own
Summary
Chapter 8: Making Your Plugin Configurable
Configurable data types
Writing a config.yml file
Saving, loading, and reloading the config file
Reading and storing the configured values
Using configured settings within your plugin
ItemStack within a configuration
YAML configuration hierarchy
Storing configuration values as variables
Accessing variables from another class
Summary
Chapter 9: Saving Your Data
Types of data that can be saved
Which data to save and when
A sample teleportation plugin
Writing a ConfigurationSerializable class
Saving data to a YAML configuration
Loading data from a YAML configuration
Summary
Chapter 10: The Bukkit Scheduler
Creating a BukkitRunnable class
Synchronous versus asynchronous tasks
Running a task from a BukkitRunnable class
Running a task later from a BukkitRunnable
Running a task timer from a BukkitRunnable class
Writing a repeating task for a plugin
Adding a delayed task to a plugin
Executing a code asynchronously
Summary

What You Will Learn

  • Set up a Bukkit-powered Minecraft server including port forwarding
  • Download and set an IDE to prepare for programming using the Bukkit API
  • Get to grips with the process of installing and testing server mods on your Bukkit server
  • Learn the basics of the Java programming language to begin writing your plugins
  • Handle Bukkit events that occur on a Minecraft server
  • Create customizable plugins to please multiple users
  • Set up permissions on your server and include permission checks in your projects

In Detail

If you have ever played Minecraft on a public server then the chances are that the server was powered by Bukkit. Bukkit plugins allow a server to be modified in more ways than you can imagine. Learning to program your own server mods will allow you to customize the game to your own liking.

Building Minecraft Server Modifications is a complete guide that walks you through the creation of Minecraft server mods. From setting up a server, to testing your newly made plugins, this book teaches you everything you need to know. With the help of this book you can start practising for a career in software development or simply create something awesome to play with your friends.

This book walks you through installing your own Minecraft server for you and your friends. Once your server is running, it will aid you in modifying the game by programming Bukkit plugins. You will learn how to program simple plugin features such as player commands and permissions. You will also learn more complex features including listening for events, creating a configurable plugin, and utilizing the Bukkit scheduler. All of this will be accomplished while writing your own server mods.

You will become familiar with the most important aspects of the Bukkit API. Additional API features will become a breeze to learn after tackling these more complicated tasks.

Authors

Read More

Recommended for You