Advertisement
Guest User

Untitled

a guest
Nov 13th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. package me.ProShadow123.Arrows;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.command.Command;
  6. import org.bukkit.command.CommandSender;
  7. import org.bukkit.entity.Arrow;
  8. import org.bukkit.entity.Player;
  9. import org.bukkit.event.block.Action;
  10. import org.bukkit.event.player.PlayerInteractEvent;
  11. import org.bukkit.plugin.PluginDescriptionFile;
  12. import org.bukkit.plugin.java.JavaPlugin;
  13.  
  14. public class Arrows extends JavaPlugin{
  15. public final Logger logger = Logger.getLogger("Minecraft");
  16. public static Arrows plugin;
  17.  
  18. public void onDisable() {
  19. PluginDescriptionFile pdfFile = this.getDescription();
  20. this.logger.info(pdfFile.getName() + " Has Been Disabled!");
  21. }
  22. public void onEnable() {
  23. PluginDescriptionFile pdfFile = this.getDescription();
  24. this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " Has Been Enabled!");
  25. }
  26. public void onPlayerInteract(PlayerInteractEvent event) {
  27. Player player = event.getPlayer();
  28. public void onInteract(PlayerInteractEvent e)
  29. {
  30. if(e.getAction() == Action.LEFT_CLICK_BLOCK || e.getAction() == Action.LEFT_CLICK_AIR)
  31. e.getPlayer().launchProjectile(Arrow.class);
  32. }
  33. }
  34. }
  35. }
  36. }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement