Guest User

Untitled

a guest
Jun 9th, 2013
60
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. }
  29.  
  30. @Override
  31. public void onDisable() {
  32. PluginDescriptionFile pdfFile = this.getDescription();
  33. this.logger.info(pdfFile.getName() + " Y U disable :(. Disabled. ");
  34.  
  35. }
  36.  
  37. @Override
  38. public void onEnable() {
  39. getServer().getPluginManager().registerEvents(this, this);
  40. PluginDescriptionFile pdfFile = this.getDescription();
  41. this.logger.info(pdfFile.getName() + " VerDev: " + pdfFile.getVersion()
  42. + " Enabled. ");
  43.  
  44. }
  45.  
  46. @EventHandler
  47. public void onVChestOpen(PlayerInteractEvent event) {
  48. Player player = event.getPlayer();
  49. if ((event.getAction() == Action.LEFT_CLICK_AIR)) {
  50. Inventory quickwarps = Bukkit.createInventory(player, 54, "Quick Warps");
  51. player.openInventory(quickwarps);
  52. }
  53.  
  54. }
  55.  
  56. }
RAW Paste Data