Guest User

New

a guest
Feb 9th, 2015
267
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.kyle.bukkitplugin;
  2.  
  3. import java.util.logging.Logger;
  4. import org.bukkit.command.Command;
  5. import org.bukkit.command.CommandSender;
  6. import org.bukkit.entity.Player;
  7. import org.bukkit.plugin.java.JavaPlugin;
  8.  
  9. public class BukkitPlugin extends JavaPlugin {
  10.  
  11. public static final Logger log = Logger.getLogger("Minecraft");
  12.  
  13. public void onEnable() {
  14.  
  15. log.info("Our Plugin has loaded!");
  16.  
  17. }
  18.  
  19. public void onDisable() {
  20.  
  21. log.info("Our plugin has unloaded D:");
  22. }
  23.  
  24. public boolean onCommand(CommandSender Sender, Command cmd, String label, String[] args) {
  25. Player player = (Player)Sender;
  26. String command = cmd.getName();
  27. if (command.equalsIgnoreCase("hi")) // Hi.HI.hI.hi {
  28. player.sendMessage("Hello");
  29. return false;
  30. }
  31. }
RAW Paste Data