Guest User

Untitled

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