Guest User

Untitled

a guest
Jun 9th, 2013
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package INVTELE.Connor2weirdness;
  2.  
  3.  
  4. import java.util.logging.Logger;
  5.  
  6. import org.bukkit.Bukkit;
  7. import org.bukkit.ChatColor;
  8. import org.bukkit.Location;
  9. import org.bukkit.Material;
  10. import org.bukkit.Sound;
  11. import org.bukkit.command.Command;
  12. import org.bukkit.command.CommandSender;
  13. import org.bukkit.entity.Player;
  14. import org.bukkit.event.Event;
  15. import org.bukkit.event.EventHandler;
  16. import org.bukkit.event.block.Action;
  17. import org.bukkit.event.player.PlayerInteractEvent;
  18. import org.bukkit.inventory.Inventory;
  19. import org.bukkit.material.Chest;
  20. import org.bukkit.plugin.PluginDescriptionFile;
  21. import org.bukkit.plugin.java.JavaPlugin;
  22. import org.bukkit.util.Vector;
  23.  
  24. public class INVTELE extends JavaPlugin {
  25. public final Logger logger = Logger.getLogger("Minecraft");
  26. public static INVTELE plugin;
  27.  
  28. @Override
  29. public void onDisable() {
  30. PluginDescriptionFile pdfFile = this.getDescription();
  31. this.logger.info(pdfFile.getName() + " Y U disable :(. Disabled. ");
  32.  
  33. }
  34.  
  35. @Override
  36. public void onEnable() {
  37. PluginDescriptionFile pdfFile = this.getDescription();
  38. this.logger.info(pdfFile.getName() + " VerDev: " + pdfFile.getVersion()
  39. + " Enabled. ");
  40.  
  41. }
  42.  
  43. @EventHandler
  44. public void onVChestOpen(PlayerInteractEvent event) {
  45. Player player = event.getPlayer();
  46. if ((event.getAction() == Action.LEFT_CLICK_AIR)) {
  47. Inventory quickwarps = Bukkit.createInventory(player, 54, "Quick Warps");
  48. player.openInventory(quickwarps);
  49. player.sendMessage("Recieved Packet!");
  50. }
  51.  
  52. }
  53.  
  54. }
RAW Paste Data