Fix bug in notifyAdmins
This commit is contained in:
parent
99d8d3ce41
commit
359222fba9
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue