Advanced Portals

Advanced Portals

307k Downloads

Implement a capitalize method inside Lang

Kariaro opened this issue ยท 1 comments

commented

commandExecuted.substring(0,1).toUpperCase() + commandExecuted.substring(1).toLowerCase(), subCommand));

In the code above using a clear typed method call like Lang.capitalize(commandExecuted) would improve the readability of the code and make it look better.

Is this a valid issue?

I want to make sure I understand how to make issues and/or feature requests.

commented

I'll have to check what this does exactly though it would count as an enhancement.

Personally I don't like the idea of forced capitalisation as most commands are written without caps and the Lang files should already have the correct capitalisation.