[SPIGOT-1939] Add {0} macro to 'unknown command' -> '"{0}" is unknown command' Created: 16/Mar/16  Updated: 16/Mar/16

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Herra Pilvinen Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: configuration,, macro, spigot.yml


 Description   

I suggest adding a macro that gives out the command user was running to "unknown command" error.

spigot.yml already has this:
{{
outdated-client: Outdated client! Please use

{0}
outdated-server: Outdated server! I'm still on {0}

}}

Where the macro get's replaced with version number.

I suggest adding a similar functionality to "unknown command":
{{
unknown-command: Unknown command. Type "/help" for help.
}}

Would become:

{{
unknown-command: "

{0}

" is unknown command. Type "/help" for help.
}}

This would be helpful since then you could see in server logs what commands the users were trying to run.



 Comments   
Comment by Herra Pilvinen [ 16/Mar/16 ]

Hm, sorry. The preformatting failed somehow and I don't seem to be able to edit the message. but I hope it's readable.

Generated at Sat Dec 13 15:25:45 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.