Advertisement
Guest User

Codigo Youtuber/Config.yml

a guest
May 29th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Youtuber
  2. implements Listener, CommandExecutor
  3. {
  4.       public Main plugin;
  5.  
  6.       public Youtuber(Main instance)
  7.       {
  8.         this.plugin = instance;
  9.       }
  10.    
  11.      public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
  12.          
  13.          Player p = (Player)sender;
  14.          
  15.          if (cmd.getName().equalsIgnoreCase("youtuber")){
  16.              p.sendMessage(plugin.getConfig().getString("Youtuber").replace("&", "§"));
  17.          }
  18.         return true;
  19.          
  20.      }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement