ashtton / spigot-command-api

A lightweight yet extremely powerful spigot command api
25 stars 7 forks source link

Cannot use Help feature #4

Closed loc4atnt closed 8 months ago

loc4atnt commented 3 years ago

Hello! First, It's very kind of you because of this API. I test this api with FactionCommands class code in README. When I type command "f" or "f create" or "f create ABC", it always execute factionHelp method. I think it will execute factionCreateCommand method when I type "f create ABC", but in fact no. I hope you can recheck this problem. Thank you!

loc4atnt commented 3 years ago

I think this code snippet (https://i.imgur.com/4Kfotsn.png) is the reason. Suppose I type "f create ABC", the label is "f". The name is "f create", so "f" cannot startsWith "f create". Therefore, couldExecute return false.