Skip to content

Wallet Withdrawal Command Reading Invalid Index #44

@Royalflamejlh

Description

@Royalflamejlh

Describe the bug
The wallet withdrawal command throws this error in console and doesn't return any info to user when used without

To Reproduce
Steps to reproduce the behavior:
Run /wallet withdrawal without any params

Expected behavior
Should ask for a parameter

Logs

Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
      at profitable-0.5.3-beta.jar//com.faridfaharaj.profitable.commands.WalletCommand.onCommand(WalletCommand.java:92)
     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
     ... 24 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions