SincerelyMC plugin #1
package me.bukkit.silversledge1031;
import org.bukkit.ChatColor; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent;
public class PlayerListener implements Listener {
public PlayerListener(EventHandle plugin) { plugin.getServer().getPluginManager().registerEvents(this, plugin); }
@SuppressWarnings("deprecation") @EventHandler public void onPlayerJoin(PlayerJoinEvent e) {
Player player = e.getPlayer();
player.sendMessage("----");
player.sendMessage(ChatColor.DARK_GREEN + "Welcome to SincerelyMC!");
player.sendMessage(ChatColor.GOLD + "Do '/kit' to get started :)");
player.sendMessage(ChatColor.DARK_GREEN + "Forums - " + ChatColor.GOLD + "Sincerelymc.enjin.com");
player.sendMessage(ChatColor.DARK_GREEN + "Store - " + ChatColor.GOLD + "Sincerelymc.buycraft.net");
player.sendTitle(ChatColor.GOLD + "SincerelyMC", "Greeting Created By Will Hoffman");
}}