Make all server messages configurable

I love the fact that bukkit and spigot let you customize some server messages (the Unknown command one, the stop server one, whitelist, etc).

I hope Sponge would allow to custom every single server message.

Thanks

3 Likes

Including the ā€œIā€™m sorry, but you cannot customize this messageā€ message?

1 Like

Obviously, all is all

This would be great, although it is possible to do with plugins.

I am afraid its not. Its hard coded in the forge server I guess. But their is nothing sponge canā€™t do with ASM :smile:.

Thatā€™s a nice idea. Also the in-built commands, for localization

Agreed. However, like @thomas15v said, it is hard coded into the forge server.

I was not aware of this. Knowing this now, Iā€™d definitely say itā€™s a needed addition.

You know thereā€™s a simpler solution than ā€œLET"S ASM ALL THE THINGSā€ A better solution IMO would be to add the lacking feature to forge than having sponge try to fix everything through ASM.

1 Like

What in the world is asm?

(sorry, iā€™m off topic :P)

http://asm.ow2.org/

ASM, is a library that allows us to change classes/minecraft on load. Lets say you want creepers only have explode glass, you could inject code to only make creepers do that. Or lets say you want to fire an event whenever a player chats. Than you inject an event caller at the place where the chat packet gets received.

Or in this case, you want to change the message:

  • Inject a public(or protected) field.
  • Replace the static message with the field.

Yeah, what he said. I would have never guessed that in a million years :stuck_out_tongue:

1 Like

I think what you want is called brain fart It starts with a ā€˜Lā€™ Kinda like localisation. Basically all strings are predefined in a file such as english.js and russian might be russian.js and you could customize it in the language of your choice and execute it.

IIRC there is or was a localization project for base forge Iā€™ll look into it after work Iā€™m sure itā€™s in the issue tracker somewhere.

1 Like

Localization support was already discussed:

I agree. Push everything upstream so everyone else can benefit, not just you/us. Iā€™m sure a lot of people in Forge would love to have customizable messages among other things that people here can think of.