Added new bukkit.playerNames() function.

This commit is contained in:
walterhiggins 2014-06-14 15:38:01 +01:00
parent 965ba76a62
commit 4d97452b15

View file

@ -12,6 +12,13 @@ var bukkit = {
}
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(){
var result = [];
var lWorlds = server.worlds;