Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 26th, 2012  |  syntax: None  |  size: 1.54 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. package com.github.Havefunpeeps.McLottery;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.ChatColor;
  6. import org.bukkit.command.Command;
  7. import org.bukkit.command.CommandSender;
  8. import org.bukkit.entity.Player;
  9. import org.bukkit.plugin.PluginDescriptionFile;
  10. import org.bukkit.plugin.java.JavaPlugin;
  11.  
  12. public class McLottery extends JavaPlugin{
  13.         public final Logger logger = Logger.getLogger("Minecraft");
  14.         public static McLottery plugin;
  15.        
  16.         public void onDisable() {
  17.                 PluginDescriptionFile pdfFile = this.getDescription();
  18.                 this.logger.info(pdfFile.getName() + " Has Been Disabled!");
  19.         }
  20.        
  21.         public void onEnable() {
  22.                 PluginDescriptionFile pdfFile = this.getDescription();
  23.                 this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " Has Been Enabled!");
  24.         }
  25.        
  26.         public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
  27.                 Player player = (Player) sender;
  28.                 if(commandLabel.equalsIgnoreCase("mclottery")){
  29.                         player.sendMessage("This plugin is a Lottery for minecraft!");
  30.                         player.sendMessage("The Pot for the next lottery is: " +IronDeposited+ " Iron, " +GoldDeposited+ " Gold, and " +DiamondsDeposited+ " Diamonds.");
  31.                         player.sendMessage("To Deposit into the Lottery for a chance to win it all: /mclgive #Iron #Gold #Diamonds");
  32.                 }
  33.                 if(commandLabel.equalsIgnoreCase("mclgive")){
  34.                         if(args.length == 3){
  35.                                 //record amount
  36.                         }else{
  37.                                 player.sendMessage("You used an incorrect format for the command! Please review the Command Usage!");
  38.                         }
  39.                 }
  40.                 return false;
  41.         }
  42. }