2.14
- Added a few new methods for grabbing accounts that specific accounts have access to.
/**
* Retrieves a list of account IDs owned by the specified account ID.
*
*
@Param pluginName the name of the plugin
*
@Param accountID the unique identifier of the account
*
@Return a list of account names owned by the specified account ID
*
*
@SINCE 2.14
*/
List<String> accountsOwnedBy(
@NotNull final String pluginName,
@NotNull final UUID accountID)
/**
* Retrieves a list of account IDs that the specified account is a member of.
*
*
@Param pluginName the name of the plugin
*
@Param accountID the UUID of the account to check membership for
*
@Return a List of String values representing the accounts that the account is a member of
*
*
@SINCE 2.14
*/
List<String> accountsMemberOf(
@NotNull final String pluginName,
@NotNull final UUID accountID)
/**
* Retrieves a list of account IDs that the specified account has the specified permissions for.
*
*
@Param pluginName the name of the plugin
*
@Param accountID the UUID of the account to check access for
*
@Param permissions variable number of permissions to check for
*
@Return a list of accounts that the account has the specified permissions to
*
*
@SINCE 2.14
*/
List<String> accountsAccessTo(
@NotNull final String pluginName,
@NotNull final UUID accountID,
@NotNull final AccountPermission... permissions)
Added placeholders. Find the list here.