Introduction: Tweeting Minecraft AI
Hi all, today I'm going to be showing you how to make your minecraft server think and talk, as well as announce it's thoughts to the world via twitter. you will need the following:
* A minecraft server
* A web browser
* A twitter account
that's all, so once you have that, you can get to work.
Step 1: Preparing Your Server
The first thing to do is to ensure your server is ready for the immense brainpower of it's new AI, but this is quite simple really. just go to www.bukkit.org and download the latest version of craftbukkit using the link on the right hand side. copy the download link from the resulting page, and save the file into the same folder as your minecraft_server.jar
if you are using a server hosting provider such as multiplay, then just ask them to install bukkit for you, as this will be a lot easier than getting access to one of their servers.
Step 2: Configuring Bukkit.
this is a relatively easy step, which can be skipped if you are using server hosting. simply start up your server by running the craftbukkit.jar file. this is the new way of starting up your server, so you shouldn't run the minecraft_server.jar file any more, but you do still need it, so don't delete it.
once you have started your server, type stop into the window, and press enter. this stops the server so it doesn't interfere with us editing the configurations.
Step 3: Install ServerEvents
before installing ServerEvents, a twitter connector library is required. this is available at
and should be saved into both the same folder as your minecraft_server.jar and a subfolder (which you may need to create) called lib.
once you have this file, you can download the main ServerEvents jar. this is avalable at
save this into the folder called 'plugins' and unzip it there.
Step 4: Configure ServerEvents
ServerEvents automaticly creates it's config files when you run it the first time, so start and stop your server again like you did in step 2.
once you have done this, you should see a subfolder called ServerEvents inside the plugins folder. open this folder. inside here is a single file called server_events.xml that holds the configuration for ServerEvents. open this up so we can edit it.
inside this file there are several options for configuring ServerEvents, but it's luck because these are all commented, so you know what they do. I tend to leave them all alone, but the one we do want to change is the twitter accesstoken. to obtain an access token, go into the plugins folder and run the serverevents.jar on it's own. this will give you a web address to visit, and will then give you a PIN code to type in. once you type in this code, you will recieve your access token and secret.
Step 5: Have Fun.
start up your server again, and log in. you should be greeted with a happy message from your server. on the other hand it could just start groaning. either way, it's fun.
To stop spamming your twitter account, ServerEvents will only post a message every half hour when players are online. if nobody is online, then you won't get any snide remarks. have fun, and remember that I am not responsible for anyone that has been offended by your server.
We have a be nice policy.
Please be positive and constructive.