Installation Steps

Preface

This plugin was originally put together several months ago to quickly provide a better system for the management of the whitelist for a community server.   Since then I have done a bit of work to make it compatible with the latest versions of WordPress and BuddyPress (3.3.0 and 1.5.1 respectively, as of time of writing).  I have also modified the website<>server chat to make use of the Logblock chat logging, though telnet is still used to send the website messages to the server.

I have taken lots of ‘naughty’ shortcuts with the coding in this plugin and as such I’ve not had time to implement things like i18n compatibility and the like.  I cannot promise that I will ever have time to implement these improvements either.

Getting Your Minecraft Server Ready for BP-MCSG

On the web side you will obviously need WordPress 3.30 and BuddyPress 1.5.1.  I’m using the latest version of php and apache – no promises about how things will work with older versions.

On the Minecraft server side you will need the following plugins:

LogBlock

MCTelnet

OnlineUsers

Whitelist

OnlineUsers and Whitelist will need to be set to use MySQL.

In the Whitelist settings file (whitelist.properties) I have the following lines:

#Auto generated config file, please modify
 #Tue Feb 22 11:41:48 CET 2011
 kick-message=Sorry, you are not on the whitelist!
 disable-list-command=false
 whitelist-admins=
 sql-enable=true
 sql-driver=com.mysql.jdbc.Driver
 sql-driver-connection=jdbc:mysql://localhost/minecraft?user=username&password=password
 sql-query=SELECT name FROM whitelist_users WHERE name='<%USERNAME%>'

In the OnlineUsers settings file (online-users.properties) I have the following lines:

destination=mysql
flatfile=online_users.txt
flatfile-template=online_users.template
flatfile-data=online_users.data
remove-offline-users=true
db=jdbc:mysql://localhost:3306/databasename
user=username
table=users_online
pass=password

For both you will obviously need to substitute with details appropriate to your setup.  Please note that you will need to create tables in your database according to the following:

CREATE TABLE `whitelist_users` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `name` varchar(50) NOT NULL,
 PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
CREATE TABLE `users_online` (
 `name` varchar(32) NOT NULL,
 `time` datetime DEFAULT NULL,
 `online` tinyint(1) unsigned NOT NULL DEFAULT '0',
 `time_total` time NOT NULL DEFAULT '00:00:00',
 PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Finally, you need to configure MCTelnet.  Set a username, password and port.

At this point you should restart your Minecraft server and activate all the new plugins.

Once all this is done your Minecraft server is ready to go.  It’s now time to deploy the bp-mcsg plugin to your BuddyPress site.

See the “Activation Steps” document for details of what to do next.

 

 

Discussion (0)

There are no comments for this doc yet.

Comment posting has been disabled on this doc.