Multiverse/Multiverse-Core — Issue #360: Format-strings instead of string concatenation
Author: main--
Created: 2012-01-01 15:47:27+00:00
State: open
Labels: Suggestion

Does @Multiverse notify all MV-Devs? I hope so.

I would like to know your opinion about changes like this one:

===
Now:

````java
message.sendMessages(teleporter, new String[]{"You don't have permission to teleport another player to a " + ChatColor.GREEN + destination.getType() + " Destination.", ChatColor.RED + " (multiverse.teleport.other." + destination.getIdentifier() + ")"});
````
(taken from [TeleportCommand.java](https://github.com/Multiverse/Multiverse-Core/blob/562de0f002d2a31cf8ced1c0f936d46a80076988/src/main/java/com/onarandombox/MultiverseCore/commands/TeleportCommand.java#L178) @ 562de0f002d2a31cf8ced1c0f936d46a80076988, just as example)

---
How I would like to change that:

````java
message.sendMessages(teleporter, new String[] {String.format("You don't have permission to teleport another player to a %s%s Destination.", ChatColor.GREEN, destination.getType()), String.format("%s(multiverse.teleport.other.%s)", ChatColor.RED, destination.getIdentifier())});
````