mc-ascendancy / AscendNations

GNU Affero General Public License v3.0
0 stars 0 forks source link

Add TabCompleter for commands #21

Closed VolticFroogo closed 3 years ago

VolticFroogo commented 3 years ago

Add TabCompleter for command auto-completion. I only actually learned that this was a thing tonight, and I am not sure which version added it. Though I should for sure add this.

VolticFroogo commented 3 years ago

Added in this commit.

Added smart tab completing for commands. You can only see commands which you have the permission to execute. For example: a new player can only see /nation create. A nation member can only see member commands. And a chancellor can see all of them.

Additionally, when claiming, you can only see /nation claim home/outpost if you have an home/outpost claim spare.