Update js-plugins/bukkit/events.js
This commit is contained in:
parent
a76a4ed87b
commit
cd57974db3
1 changed files with 2 additions and 2 deletions
|
@ -23,11 +23,11 @@ var bukkit = bukkit || {
|
||||||
// if the string "block.BlockBreakEvent" is supplied then it's converted to the
|
// if the string "block.BlockBreakEvent" is supplied then it's converted to the
|
||||||
// org.bukkit.event.block.BlockBreakEvent class . For custom event classes, just
|
// org.bukkit.event.block.BlockBreakEvent class . For custom event classes, just
|
||||||
// supply the custom event class e.g.
|
// supply the custom event class e.g.
|
||||||
// bukkit.on(net.yourdomain.events.YourCustomEvent,function(e){ ... });
|
// bukkit.on(net.yourdomain.events.YourCustomEvent,function(l,e){ ... });
|
||||||
//
|
//
|
||||||
on: function(
|
on: function(
|
||||||
/* String or java Class */ eventType,
|
/* String or java Class */ eventType,
|
||||||
/* function */ handler,
|
/* function( registeredListener, event) */ handler,
|
||||||
/* (optional) String (HIGH, HIGHEST, LOW, LOWEST, NORMAL, MONITOR), */ priority
|
/* (optional) String (HIGH, HIGHEST, LOW, LOWEST, NORMAL, MONITOR), */ priority
|
||||||
){}
|
){}
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue