/FileExtraction/Java_unseen/mcgrizzz_ProRecipes/src/mc/mcgrizzz/prorecipes/lib/Messenger.java
package mc.mcgrizzz.prorecipes.lib;

import io.puharesource.mc.titlemanager.api.TitleObject;
import mc.mcgrizzz.prorecipes.ProRecipes;

import org.bukkit.entity.Player;

public class Messenger {
	
	public static void sendMessage(Player player, String title, String subtitle){
		if(!ProRecipes.getPlugin().prompts)return;
		if(ProRecipes.getPlugin().title){
			TitleObject to = new TitleObject(title, subtitle);
			to.setFadeIn(5);
			to.setStay(25);
			to.setFadeOut(5);
			to.send(player);
		}else{
		player.sendMessage(title + " - " + subtitle);
			
		}
			
	}

}
