refresh
Refreshes the inventory for the specified player based on a given predicate.
Return
True if the refresh was successful, false otherwise
Since
2.0.0
Parameters
player
The player whose inventory should be refreshed
predicate
A function that determines whether an inventory should be refreshed. Returns true to refresh, false to skip.
Refreshes the specified inventory for the player.
Return
True if the refresh was successful, false otherwise
Since
2.0.0
Parameters
player
The player whose inventory should be refreshed
inventory
The inventory to refresh