Need help? Ask on the forum, ask a fellow user or developer (join us on IRC), or contact sk89q.
Contribute to the wiki, edit this page! Register an account, or login with Facebook first.
HEY! Do you integrate (or want to) a plugin into yours? Do you help work on WE/WG/etc.? Please subscribe to our mailing list!

About the ads

CommandHelper/API/all players

From SK's Wiki
Jump to: navigation, search

All Players

Description: Returns an array of all the player names of all the online players on the server

Format: all_players()

Returns: array of all the players currently on the server

Example:



# displays how many people are currently on the server
run( /say length(all_players() ))



# gives one stone to all players
foreach(all_players(),@pl, run( /give @pl 1 1 ))



Namespaces

Variants
Actions