cloudnode-pro / BankAccounts

A Minecraft economy plugin that enables players to hold multiple bank accounts.
https://modrinth.com/plugin/bankaccounts
GNU General Public License v3.0
7 stars 3 forks source link

Re-factor bank command #19

Closed zefir-git closed 1 year ago

zefir-git commented 1 year ago

Instead of using methods that take as argument sender, args, etc. make the methods independent from the command, e.g., only returning string sent back to the sender.

Example:

public @NotNull String balance(final @NotNull String id) {
    …
}

Checking for permissions, usage (required args present, etc.) is performed separately.