function getPlayersBukkit() {
  var result = [];
  var players = server.getOnlinePlayers();
  for (var i = 0; i < players.size(); i++) {
    result.push(players.get(i));
  }
  return result;
}
**********************************************************************
### utils.players() function

This function returns a javascript array of all online players on the
server.  You can optionally provide a function which will be invoked
with each player as a parameter.  For example, to give each player the
ability to shoot arrows which launch fireworks:

```javascript
require('utils').players( arrows.firework )
```

Any players with a bow will be able to launch fireworks by shooting.

### utils.playerNames() function

This function returns a javascript array of player names (as javascript strings)
*