3.1.5 fix events.connect/events.connection mismatch

This commit is contained in:
walterhiggins 2015-05-31 09:09:42 +01:00
parent 734e058e9a
commit 10497efae3
3 changed files with 10 additions and 1 deletions

View File

@ -1 +1 @@
scriptcraft-version=3.1.4
scriptcraft-version=3.1.5

View File

@ -1,6 +1,11 @@
RELEASE NOTES
=============
3.1.5 Release (2015 05 31)
--------------------------
CanaryMod version : Add events.connect as synonym for events.connnection for backward-compatibility
with 1.7.9 and book listings.
3.1.4 Release (2015 05 09)
--------------------------
Various bug fixes and new 'inventory' module.

View File

@ -99,6 +99,10 @@ var helper;
if (__plugin.canary){
module.exports = require('events-canary');
helper = require('events-helper-canary');
// backwards-compatibility with canarymod 1.7.9 for book listings
if (helper.connection && !helper.connect){
helper.connect = helper.connection;
}
} else {
module.exports = require('events-bukkit');
helper = require('events-helper-bukkit');