Fix bug in notifyAdmins

This commit is contained in:
walterhiggins 2013-01-28 19:49:44 +00:00
parent 99d8d3ce41
commit 359222fba9

View file

@ -107,10 +107,11 @@ var global = this;
};
var _notifyAdministrators = function(msg){
var ops = __plugin.server.operators;
for (var i = 0; i < ops.size();i++){
if (ops[i].isOnline())
ops[i].player.chat(msg);
var ops = __plugin.server.operators.toArray();
for (var i = 0; i < ops.length;i++){
var op = ops[i];
if (op.isOnline())
op.chat(msg);
}
__plugin.logger.info(msg);
};