Skip to content

Commit

Permalink
Add account name to the createAccount method.
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed Jun 28, 2022
1 parent 918bda2 commit 7129ffb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/net/milkbowl/vault2/economy/Economy.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,22 @@ public interface Economy {
* Attempts to create a account for the given uuid
*
* @param uuid associated with the account
* @param name associated with the account.
* @return if the account creation was successful
*/
public boolean createAccount(UUID uuid);
public boolean createAccount(UUID uuid, String name);

/**
* Attempts to create an account for the given UUID on the specified world
* IMPLEMENTATION SPECIFIC - if an economy plugin does not support this then
* false will always be returned.
*
* @param uuid associated with the account
* @param name associated with the account.
* @param worldName String name of the world
* @return if the account creation was successful
*/
public boolean createAccount(UUID uuid, String worldName);
public boolean createAccount(UUID uuid, String name, String worldName);

/**
* Returns a map that represents all of the UUIDs which have accounts in the
Expand Down

0 comments on commit 7129ffb

Please sign in to comment.