All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.maximvdw.placeholderapi.internal.ui.SendUnknown Maven / Gradle / Ivy

Go to download

MVdW Placeholder API is an API that allows you to register placeholders to all MVdW Placeholder plugins at once.

The newest version!
package be.maximvdw.placeholderapi.internal.ui;

import org.bukkit.entity.Player;

/**
 * SendUnknown
 * 
 * Send a message to an unknown receiver.
 * 
 * @project BasePlugin
 * @version 1.0
 * @author Maxim Van de Wynckel (Maximvdw)
 * @site http://www.mvdw-software.be/
 */
public class SendUnknown {
	/**
	 * Send a message to an unkown receiver
	 * 
	 * @param message
	 *            Message to send
	 * @param sender
	 *            Reciever
	 */
	public static void toSender(String message, Object sender) {
		if (sender instanceof Player) {
			SendGame.toPlayer(message, (Player) sender); // Send to game
		} else {
			SendConsole.message(message); // Send to console
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy