mirror of
https://github.com/aikar/commands.git
synced 2026-06-03 15:52:18 +00:00
0aa4cfd457
The code is now checking for placeholders, that are not replaced. This would also warn the dev if he completely forgets to register a replacement. The downside of this is, that any %.* kind of pattern, that is NOT supposed to be a replacement will cause an error message. But since I couldn't come up for a reason to include % in any of the Annotation values other than a replacement, I decided this is much easier than checking all "old" commands when a replacement is registered. Alternatively, I could collect all these unreplaced replacements and check against the collection when a new one is registered. This would not warn a dev that forgot to register the replacement, but on the other hand still allows the use of %. Please tell me what you think. resolves #160