Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyD committed Jan 16, 2014
1 parent 587432e commit ba4d943
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Skynet-Minecraft
Skynet
================

## Installation
Expand All @@ -7,7 +7,7 @@ Skynet-Minecraft
- Install moment (`npm install moment`)
- Install mysql (`npm install mysql`)
- Install async (`npm install async`)
- Create database with the [following code] (http://sqlfiddle.com/#!2/32e4e9):
- Create the database using the [following code] (http://sqlfiddle.com/#!2/32e4e9):

```sql

Expand Down Expand Up @@ -61,5 +61,29 @@ ALTER TABLE `session`
ADD CONSTRAINT `fk_logout_event` FOREIGN KEY (`logout`) REFERENCES `event` (`id`),
ADD CONSTRAINT `fk_session_player` FOREIGN KEY (`player_id`) REFERENCES `player` (`id`);
```

- Update Skynet.js with your own MySQL connection settings:

```
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',
password : '',
database : 'skynet'
});
connection.connect();
```

- Update Skynet.js with your own Minecraft server settings:

```
var options = {
host: "mc.civcraft.vg", // optional
port: 25565, // optional
username: "", // email and password are required only for
password: "", // online-mode=true servers
};
```
- If the server you are connecting to uses the plugin Herochat to manage its chat, overwrite
mineflayer/lib/plugins/chat.js with [patch/chat.js] (https://github.com/JonnyD/Skynet/blob/master/patch/chat.js)
-
Created by [Jonathan Devine](http://jonnydevine.com)

0 comments on commit ba4d943

Please sign in to comment.