Returning methods
How to find a returning method
--- PlayerVariable methods ---
> ContainsPlayer [rets] Returns a true/false value indicating if the provided player is in the list.
> GetPlayerFromReference [rets] Returns a player variable with a single player from a reference.
> JoinPlayers [rets] Returns all players that were provided from multiple player variables.
> LimitPlayers [rets] Returns a player variable with amount of players being equal or lower than the limit.
> RemovePlayers [rets] Returns players from the original variable that were not present in other variables.How to use a returning method
=== LimitPlayers ===
> Returns a player variable with amount of players being equal or lower than the limit.
This method returns players, which can be saved or used directly.
This method expects the following arguments:
(1) 'players' argument
- Expected value: Player variable e.g. @players or * for every player
(2) 'limit' argument
- Expected value: Value must be at least 1 e.g. 421Last updated