Szczegóły ebooka

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

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

Cody M. Sommer

Ebook
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.
  • Building Minecraft Server Modifications
    • Table of Contents
    • Building Minecraft Server Modifications
    • Credits
    • About the Author
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers and more
        • Why Subscribe?
        • Free Access for Packt account holders
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Errata
        • Piracy
        • Questions
    • 1. Deploying a CraftBukkit Server
      • Installation
      • Setup
      • Minecraft/Bukkit server commands
      • Port forwarding
      • Summary
    • 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
    • 3. Creating Your First Bukkit Plugin
      • Installing an IDE
      • Creating a new project
      • Adding Bukkit as a library
      • The essentials of a Bukkit plugin
        • The plugin.yml file
        • The plugins main class
      • Making and calling new methods
      • Expanding your code
      • Summary
    • 4. Testing on the CraftBukkit Server
      • Building the JAR file
      • Installing your plugin
      • Testing your plugin
      • Testing new versions of your plugin
      • Summary
    • 5. Plugin Commands
      • Adding a command to plugin.yml
      • Programming the command actions
      • Assigning the executor for the command
      • Summary
    • 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
    • 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
    • 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
    • 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
    • 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
    • Index
  • Tytuł: Building Minecraft Server Modifications. Discover how to program your own server plugins and augment your Minecraft server with Bukkit
  • Autor: Cody M. Sommer
  • Tytuł oryginału: Building Minecraft Server Modifications. Discover how to program your own server plugins and augment your Minecraft server with Bukkit
  • ISBN: 9781849696012, 9781849696012
  • Data wydania: 2013-09-25
  • Format: Ebook
  • Identyfikator pozycji: e_3cni
  • Wydawca: Packt Publishing