Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.ProShadow123.arrows2;
- import java.util.logging.Logger;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Arrow;
- import org.bukkit.entity.Player;
- import org.bukkit.event.block.Action;
- import org.bukkit.event.player.PlayerInteractEvent;
- import org.bukkit.plugin.PluginDescriptionFile;
- import org.bukkit.plugin.java.JavaPlugin;
- public class arrows2 extends JavaPlugin{
- public final Logger logger = Logger.getLogger("Minecraft");
- public static arrows2 plugin;
- public void onDisable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- this.logger.info(pdfFile.getName() + " Has Been Disabled!");
- }
- public void onEnable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " Has Been Enabled!");
- }
- public final class MyPlayerListener implements Listener {
- public void onPlayerInteract(PlayerInteractEvent event) {
- Player player = event.getPlayer();
- public void onInteract(PlayerInteractEvent e)
- {
- if(e.getAction() == Action.LEFT_CLICK_AIR)
- e.getPlayer().launchProjectile(Arrow.class);
- }
- }
- }
- }
- }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement