Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.pogostick29dev.subscribe;
- import mkremins.fanciful.FancyMessage;
- import org.bukkit.Bukkit;
- import org.bukkit.ChatColor;
- import org.bukkit.event.EventHandler;
- import org.bukkit.event.Listener;
- import org.bukkit.event.player.PlayerJoinEvent;
- import org.bukkit.plugin.java.JavaPlugin;
- public class Subscribe extends JavaPlugin implements Listener {
- public void onEnable() {
- Bukkit.getServer().getPluginManager().registerEvents(this, this);
- }
- @EventHandler
- public void onPlayerJoin(PlayerJoinEvent e) {
- new FancyMessage("Check out my YouTube channel and don't forget to subscribe! ")
- .color(ChatColor.GOLD)
- .then("Click here.")
- .style(ChatColor.UNDERLINE)
- .color(ChatColor.BLUE)
- .link("http://www.youtube.com/user/PogoStick29Dev")
- .tooltip("Go to my YouTube channel.")
- .send(e.getPlayer());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement