MiracleM4n/mChatSuite — pull request #43 by Firedroide (2012-08-15 12:24:07+00:00)
Title: Change the way aliases are handled.

As I looked through the code of mChat, I was really upset how aliases are handled.
Every time a command gets called, even if it's not one of mChat, the command gets scanned if it could possibly be an alias of a mChat command.
This really causes some performance issues, and not only with mChat commands, but with every plugin command.

So here's my solution to this:
- When a command gets registered, it calls setAliases(), which uses Bukkit methods to register the aliases.
- When /mchat reload all or /mchat reload config is used, plugin.reloadAliases() is called, which resets all the aliases. Therefore the reload commands still do their job and the aliases are changed if the config gets modified.

This should result in a huge performance boost.

BTW, I also removed 2 unused imports of HashMap.