Tutorials

Python Plugin Development Tutorials

This section will contain a number of tutorials for writing python plugins in general, as well as tips on how to do certain things in a python plugin leveraging the ability to combine java and python freely.

All tutorials assume you are familiar with the bukkit api, and if not, have the API Docs open in another tab. (Personally, i never close that tab, ever)

Furthermore, while python lends itself very well to being understood without prior knowledge by virtue of its concise syntax and sensible keywords, if you don't have some working knowledge of python (or programming), you have to read up stuff you don't understand for yourself in the python/jython documentation, since this are supposed to be bukkit plugin tutorials, and not general python tutorials. That said, i will try to annotate the less obvious constructs to the best of my ability (and patience). I do think though that even without any prior knowledge, it is very possible to learn as you go by looking at this tutorials, some source code, and combine it with a healthy dose of trial and error.

Tutorial 0 - Tools for Plugin Development

In which i'll give a short overview of what you can use to develop python plugins, how to deploy them, and my personal tool recommendations

Tutorial 1 - Simple Plugin

Overview of how to write a working plugin base that does not do a lot yet

Tutorial 2 - Using Commands

An introduction to command handlers

In this 2-part tutorial, you will create a plugin that enables you to bringt light and darkness to the world and includes a monster roulette, and a second plugin that allows players to save locations they can then quickly teleport to. The latter one includes simple saving to a file, to keep the locations after server restart.

Tutorial 3 - Event Handlers

How to listen for events, and do stuff with them

Another 2-part tutorial. The first part brings grenades and cluster grenades to your server, the second one is a simple rpg system with multiple classes, spells, and special abilities. The second part also includes basic SQLite usage to save the character stats.


Comments

Posts Quoted:
Reply
Clear All Quotes