Building Minecraft server modifications create and customize your very own Minecraft server using Java and the Spigot API
Create and customize your very own Minecraft server using Java and the Spigot API About This Book Set up a Minecraft server that you control Use object-oriented programming to modify Minecraft regardless of your level of experience This interactive guide will help you create a unique experience for...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, England ; Mumbai, [India] :
Packt Publishing
2015.
|
Edición: | 2nd ed |
Colección: | Community experience distilled.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629908806719 |
Tabla de Contenidos:
- Cover ; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Preface; Chapter 1: Deploying a Spigot Server ; Introduction to Spigot; Installing a new Spigot server; Setting up a new server; Minecraft/Bukkit server commands; Port forwarding; Summary; Chapter 2: Learning the Bukkit API ; Introduction to APIs; The Bukkit API documentation; Navigating through the Bukkit API documentation; Understanding the Java documentation; Exploring the Bukkit API; Summary; Chapter 3: Creating Your First Bukkit Plugin ; Installing an IDE; Creating a new project
- Adding Bukkit as a libraryThe essentials of a Bukkit plugin; The plugin.yml file; The plugin's main class; Making and calling new methods; Expanding your code; Summary; Chapter 4: Testing on the Spigot Server ; Building a JAR file; Installing the plugin; Testing your plugin; Testing new versions of the plugin; Debugging the code; Learning from your mistakes; When researching is not enough; Reading the stack trace; Breaking down the code; Adding debug messages; Referring back to the Javadoc; Fixing the bug only after you understand it; Summary; Chapter 5 : Plugin Commands
- Adding a command to plugin.ymlProgramming the command actions; Assigning the executor for the enchant 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 occursCreating 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 classSaving 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 class; Running a task timer from a BukkitRunnable class; Writing a repeating task for a plugin; Adding a delayed task to a plugin; Executing code asynchronously; Summary; Index