package me.stefvanschie.buildinggame.managers.messages;

import me.stefvanschie.buildinggame.managers.files.SettingsManager;

import org.bukkit.command.CommandSender;

public class MessageManager {

	private MessageManager() {}
	
	private static MessageManager instance = new MessageManager();
	
	public static MessageManager getInstance() {
		return instance;
	}
	
	public void send(CommandSender sender, String message) {
		if (message.equals("")) {
			return;
		}
		
		sender.sendMessage(SettingsManager.getInstance().getMessages().getString("global.prefix")
				.replaceAll("&", "§") + message
				.replaceAll("&", "§"));
	}
	
	public void sendWithoutPrefix(CommandSender sender, String message) {
		if (message.equals("")) {
			return;
		}
		
		sender.sendMessage(message
				.replaceAll("&", "§"));
	}
	
}

@@ -571,31 +571,343 @@
 lace
-All(%22&%22, %22%C2%A7%22) + message
+(%22%25:a%25%22, %22%C3%A4%22)%0A%09%09%09%09.replace(%22%25:e%25%22, %22%C3%AB%22)%0A%09%09%09%09.replace(%22%25:i%25%22, %22%C3%AF%22)%0A%09%09%09%09.replace(%22%25:o%25%22, %22%C3%B6%22)%0A%09%09%09%09.replace(%22%25:u%25%22, %22%C3%BC%22)%0A%09%09%09%09.replace(%22%25ss%25%22, %22%C3%9F%22)%0A%09%09%09%09.replaceAll(%22&%22, %22%C2%A7%22) + message%0A%09%09%09%09.replace(%22%25:a%25%22, %22%C3%A4%22)%0A%09%09%09%09.replace(%22%25:e%25%22, %22%C3%AB%22)%0A%09%09%09%09.replace(%22%25:i%25%22, %22%C3%AF%22)%0A%09%09%09%09.replace(%22%25:o%25%22, %22%C3%B6%22)%0A%09%09%09%09.replace(%22%25:u%25%22, %22%C3%BC%22)%0A%09%09%09%09.replace(%22%25ss%25%22, %22%C3%9F%22)
 %0A%09%09%09
@@ -1074,32 +1074,188 @@
 Message(message%0A
+%09%09%09%09.replace(%22%25:a%25%22, %22%C3%A4%22)%0A%09%09%09%09.replace(%22%25:e%25%22, %22%C3%AB%22)%0A%09%09%09%09.replace(%22%25:i%25%22, %22%C3%AF%22)%0A%09%09%09%09.replace(%22%25:o%25%22, %22%C3%B6%22)%0A%09%09%09%09.replace(%22%25:u%25%22, %22%C3%BC%22)%0A%09%09%09%09.replace(%22%25ss%25%22, %22%C3%9F%22)%0A
 %09%09%09%09.replaceAll(

Update MessageManager.java