Guest User

Untitled

a guest
Jun 9th, 2013
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package INVTELE.Connor2weirdness;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.Bukkit;
  6. import org.bukkit.ChatColor;
  7. import org.bukkit.Location;
  8. import org.bukkit.Material;
  9. import org.bukkit.Sound;
  10. import org.bukkit.command.Command;
  11. import org.bukkit.command.CommandSender;
  12. import org.bukkit.entity.Player;
  13. import org.bukkit.event.Event;
  14. import org.bukkit.event.EventHandler;
  15. import org.bukkit.event.Listener;
  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 implements Listener {
  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. getServer().getPluginManager().registerEvents(new INVTELE(), this);
  38. PluginDescriptionFile pdfFile = this.getDescription();
  39. this.logger.info(pdfFile.getName() + " VerDev: " + pdfFile.getVersion()
  40. + " Enabled. ");
  41.  
  42. }
  43.  
  44. @EventHandler
  45. public void onVChestOpen(PlayerInteractEvent event) {
  46. Player player = event.getPlayer();
  47. if ((event.getAction() == Action.LEFT_CLICK_AIR)) {
  48. Inventory quickwarps = Bukkit.createInventory(player, 54, "Quick Warps");
  49. player.openInventory(quickwarps);
  50. player.sendMessage("Recieved Packet!");
  51. }
  52.  
  53. }
  54.  
  55. }
RAW Paste Data