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 _notifyAdministrators = function(msg){
var ops = __plugin.server.operators; var ops = __plugin.server.operators.toArray();
for (var i = 0; i < ops.size();i++){ for (var i = 0; i < ops.length;i++){
if (ops[i].isOnline()) var op = ops[i];
ops[i].player.chat(msg); if (op.isOnline())
op.chat(msg);
} }
__plugin.logger.info(msg); __plugin.logger.info(msg);
}; };