Building Minecraft Server Modifications

Discover how to program your own server plugins and augment your Minecraft server with Bukkit

Building Minecraft Server Modifications

Cody M. Sommer

Discover how to program your own server plugins and augment your Minecraft server with Bukkit
Mapt Subscription
FREE
$29.99/m after trial
eBook
$12.60
RRP $17.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$12.60
$29.99
$29.99p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781849696005
Paperback142 pages

Book Description

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.

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

Authors

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

Book Details

ISBN 139781849696005
Paperback142 pages
Read More

Read More Reviews

Recommended for You

Building Machine Learning Systems with Python Book Cover
Building Machine Learning Systems with Python
$ 29.99
$ 6.00
Git: Version Control for Everyone Book Cover
Git: Version Control for Everyone
$ 23.99
$ 16.80
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Raspberry Pi for Secret Agents Book Cover
Raspberry Pi for Secret Agents
$ 14.99
$ 10.50
Instant Minecraft: Pi Edition Coding How-to Book Cover
Instant Minecraft: Pi Edition Coding How-to
$ 9.99
$ 7.00
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80