Advertisement
SkyZoRualHD

Code Plugins SkyZoRualHD

Jul 22nd, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package fr.SkyZoRualHD.Utilitaire;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.command.Command;
  6. import org.bukkit.command.CommandSender;
  7. import org.bukkit.entity.Player;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9.  
  10. public class Main extends JavaPlugin {
  11.    
  12.       public Logger log = Logger.getLogger("Minecraft");
  13.      
  14.       public void OnEnable()
  15.       {
  16.         log.info("[SkyZoRualHD] Utilitaire ne pas rencontre de probleme lors de son demmarage");
  17.         log.warning("[SkyZoRualHD] Utilitaire a rencontre une erreur");
  18.         log.severe("[SkyZoRualHD] Utilitaire a crash");
  19.       }
  20.      
  21.       public void OnDisable() {}
  22.      
  23.       public boolean onCommand(CommandSender sender, Command cmd, String label, String args[]){
  24.           Player player = (Player)sender;
  25.          
  26.         if(sender instanceof Player) {
  27.          
  28.            
  29.             if(label.equalsIgnoreCase("Youtube")){
  30.             player.sendMessage("Abonne toi a cette chaîne : https://www.youtube.com/user/MetaXxkyky26xX");
  31.             }
  32.            
  33.             if(label.equalsIgnoreCase("boutique")){
  34.                 player.sendMessage("Va sur la boutique : http://4fightpvp.livehost.fr/boutique.html");
  35.           }
  36.             if(label.equalsIgnoreCase("vote")){
  37.                 player.sendMessage("Les votes sont en préparation");
  38.       }
  39.     }
  40.         return false;
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement