Added new bukkit.playerNames() function.
This commit is contained in:
parent
965ba76a62
commit
4d97452b15
1 changed files with 7 additions and 0 deletions
|
@ -12,6 +12,13 @@ var bukkit = {
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
playerNames: function(){
|
||||||
|
var result = [];
|
||||||
|
for (var i = 0; i < server.onlinePlayers.length; i++){
|
||||||
|
result.push(''+ server.onlinePlayers[i].name);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
},
|
||||||
worlds: function(){
|
worlds: function(){
|
||||||
var result = [];
|
var result = [];
|
||||||
var lWorlds = server.worlds;
|
var lWorlds = server.worlds;
|
||||||
|
|
Reference in a new issue