Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Building Minecraft Server Modifications
Building Minecraft Server Modifications

Building Minecraft Server Modifications: Discover how to program your own server plugins and augment your Minecraft server with Bukkit

Arrow left icon
Profile Icon Cody M. Sommer
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (6 Ratings)
Paperback Sep 2013 142 pages 1st Edition
eBook
₱1211.99 ₱1346.99
Paperback
₱1683.99
Subscription
Free Trial
Arrow left icon
Profile Icon Cody M. Sommer
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (6 Ratings)
Paperback Sep 2013 142 pages 1st Edition
eBook
₱1211.99 ₱1346.99
Paperback
₱1683.99
Subscription
Free Trial
eBook
₱1211.99 ₱1346.99
Paperback
₱1683.99
Subscription
Free Trial

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Building Minecraft Server Modifications

Chapter 2. Learning the Bukkit API

You may be wondering what the difference is between Bukkit and CraftBukkit. Many people use the two words interchangeably. However, they are in fact different files. In chapter one you were introduced to the CraftBukkit jar. In this chapter you will be introduced to the Bukkit API and learn what it allows you to accomplish through programming plugins for a CraftBukkit server. By the end of this chapter you will most likely have numerous ideas for plugins that you will eventually be able to create yourself. This chapter will cover the following in more detail:

  • Understanding the purpose of an API

  • Finding documentation of the Bukkit API

  • Navigating through JavaDocs to find specific information

  • Reading and understanding the documentation

  • Exploring and learning more aspects of the Bukkit API

Introduction to APIs


API is an acronym for Application Programming Interface. An API helps to control how various software components are used. As mentioned in the previous chapter, CraftBukkit includes the Minecraft code in a form that is easier for developers to utilize in creating plugins. CraftBukkit has a lot of code that we do not need to access for creating plugins. It also includes code that we should not use as it could cause the server to become unstable. Bukkit provides us with the classes that we can use to properly modify the game. Basically, Bukkit acts as a bridge between our plugin and the CraftBukkit server. The Bukkit team adds new classes, methods, and so on, to the API as new features develop in Minecraft, but the preexisting code rarely changes. This ensures that our Bukkit plugins will still function correctly months or even years from now. Even though new versions of Minecraft/CraftBukkit are being released. For example, if Minecraft were to change how an entity's...

The Bukkit API documentation


Documentation of the Bukkit API can be found at jd.bukkit.org. You will see several links regarding the status of the build (Recommended, Beta, or Development) and the form of the documentation (JavaDocs or Doxygen). If you are new to reading documentation of Java code, you may prefer Doxygen. It includes useful features, such as a search bar and collapsible lists and diagrams. If you are already familiar with reading documentation then you may be more comfortable using the JavaDocs. In the following screenshot, both API docs are side by side for comparison. The traditional JavaDocs are on the left and the Doxygen documentation is on the right.

The following figure is the inheritance diagram for LivingEntity from the Doxygen site. Take note that on the site you are able to zoom in and click a box to go to that class.

I encourage you to browse through each documentation to decide which one you prefer. In this book we will be using Doxygen but keep in mind that both...

Left arrow icon Right arrow icon

Key benefits

  • 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

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.

Who is this book 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.

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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 25, 2013
Length: 142 pages
Edition : 1st
Language : English
ISBN-13 : 9781849696005
Languages :
Concepts :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Sep 25, 2013
Length: 142 pages
Edition : 1st
Language : English
ISBN-13 : 9781849696005
Languages :
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 5,307.97
Raspberry Pi cookbook for Python programmers
₱2500.99
Instant Minecraft Designs How-to
₱1122.99
Building Minecraft Server Modifications
₱1683.99
Total 5,307.97 Stars icon

Table of Contents

10 Chapters
Deploying a CraftBukkit Server Chevron down icon Chevron up icon
Learning the Bukkit API Chevron down icon Chevron up icon
Creating Your First Bukkit Plugin Chevron down icon Chevron up icon
Testing on the CraftBukkit Server Chevron down icon Chevron up icon
Plugin Commands Chevron down icon Chevron up icon
Player Permissions Chevron down icon Chevron up icon
The Bukkit Event System Chevron down icon Chevron up icon
Making Your Plugin Configurable Chevron down icon Chevron up icon
Saving Your Data Chevron down icon Chevron up icon
The Bukkit Scheduler Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(6 Ratings)
5 star 50%
4 star 33.3%
3 star 0%
2 star 0%
1 star 16.7%
Filter icon Filter
Top Reviews

Filter reviews by




Stew Beauchamp Oct 30, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
After reading the first 3 chapters I was able to create my first sample plugin for the Minecraft Bukkit (CraftBukkit) server software.Building Minecraft Server Mods is the first book by Cody "Codisimus" Sommers. A great piece of technical writing by a beginner, the first version of the book does suffer from a few editing errors, but I believe that to be a problem caused by the publisher and should not be held against the author.This book is not for beginners, and Cody explains that very early on. I have a bit of experience with Java and I teach computer programming so I had no trouble following the explanations. Cody explains just enough to you to complete the things you need without making it too complicated. I did have a few problems at the start because I tried using Eclipse (which I am not very familiar with) instead of NetBeans which Cody uses throughout the book but I was able to get everything working. He even provides a link to his website where readers can learn basic Java if they don't have experience with the language.The examples are simple enough to understand but complex enough to make them useful and to give you more meat to work on for developing your own plugins or using his examples as a base to start from. The prose of the book is very informal and should be easy to understand for most readers.I was quite happy to start learning how to create plugins for Minecraft servers and the ideas provided in Cody's book have really got me excited about starting some projects. Great work by a new author!
Amazon Verified review Amazon
Jennifer Y. Nov 06, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
It shows a lot of what to do and I think it is good if you are making a server
Amazon Verified review Amazon
PaulB Nov 02, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Great book! Ever wanted to learn the ins and outs of a Minecraft server? Find all the information in one place can often be challenging. This book walks you through setting up a Craftbukkit server and essential plugins. Then it takes you further into explaining how you too can build custom plugins to work with Minecraft. I am only currently half way through the book, but am totally delighted. I have read and reviewed other books thinking I just wasted so much time and it didn't even deliver what the title promised. I am very pleased with this book so far. If you are excited and want to learn about Minecraft multiplayer servers I recommend this title.
Amazon Verified review Amazon
Larry Mar 22, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
It is short, but it really has the important points that I needed for a minecraft server setup.
Amazon Verified review Amazon
No One Jun 09, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
This a good way to get started learning the Bukkit API. It does have its flaws. The first (though beyond the author's control and probably not a problem when it first came out) is that its becoming outdated.The first plugin you write assumes a method that now returns a collection will return an array. Fortunately its not easy to convert, but you have to know enough Java and be familiar enough with your IDE to to figure it out. Someone who wasn't yet comfortable with these things could be lost.Another is the paradox of saying you should know Java before hand for the book to be useful, and then assuming you don't and teaching a lot of Java basics. I know this probably isn't really completely a flaw, as many may read don't have this knowledge, but for me it did at times feel like too much hand holding on knowledge I thought would be assumed. I would say that if you want to do much with Bukkit of Forge you should know or learn Java -- it will really open up possibilities, and is really the only way you can fully understand anything you aren't spoon-fed.The third is that it spend too much time just talking about servers and how to run them for my taste. Again, like with the Java basics this cuts both ways as many are likely to pick this up because they are into the game and dream of running a server and having custom plugins without actually having run a server before.Slow is something that cuts both ways, depending on how much you know -- for many it may be a good things -- if you know how to run servers and know Java (I've been using Java for years, have run a couple small servers, and written Forge mods, so I probably was ahead of many readers) this may seem to go to slow and the first three chapters may be skipable, but its still does a good job introducing Bukkit). If you are completely new to all this, then this will get you started, as long as your willing to keep learning.Over all its a good book, a good way to get started with the Bukkit API; also, the Kindle version is an excellent deal and lack the flaws found in Kindle editions of some books. Just be warned that in the future Bukkit itself my come to be replaced by a newer API called Spoonge.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.