Yes, a simple plugin, I do a /throw, or any command you want to put, and the player throws it, with full speed. If it can be done, with more speed than the deafult. If it is to hard, dont bother, just the command and arrow is ok. Can someone help me on this?
Here you are. Use /arrow to shoot an arrow. I might add to this and maybe allow players with a certain Permission-Node to enable/disable throwing and then throw by right-/left-click, but I do not have enough time for that at the moment. Busy with my other plugins.
Thank you sir, you are very kind. Sorry to bother you again, but the arrow is not as fast as the bow, (they go half the distance of a bow) so they only hit the mobs, but do very little damage. Can you fix this? Also, if its no much to ask, but could you remove the "..." chat text on arrow shoot? Thank you very much. -aehoooo
Oh, the chat text is my mistake. About the power of the shot, I will take a look at it, didn't test that yet.
I found it out and implented it, if I got some time I may add some more features, maybe a config to set the power Why do I always end up with projectiles being shot?!) Speed is now 5 times the old one. Download is here. Have fun, if you got any problem, simply tell me. EDIT: In my plugin Mortar I used explosions, that's a different kind of "power".
WOW thank you. This is way better that I expected. The arrow now goes very far, its just perfet for the crossbow I'm making with UltraItems. Thank you :3
No problem mate. I was quite surprised how far it goes, if you multiply that by five again... Woooow.
I don't have the file anymore, but the plugin only contained a few lines and was really stupid. Where is the sense in typing /arrow to throw an arrow?! EDIT: Just found the file, you can download it here. The only command is "/arrow". Sourcecode (Move your mouse to reveal the content) Sourcecode (open) Sourcecode (close) Code:java package phiwa.Arrow; import java.io.PrintStream;import org.bukkit.ChatColor;import org.bukkit.Server;import org.bukkit.command.Command;import org.bukkit.command.CommandSender;import org.bukkit.entity.Arrow;import org.bukkit.entity.Player;import org.bukkit.plugin.PluginManager;import org.bukkit.plugin.java.JavaPlugin;import org.bukkit.util.Vector; public class Arrow extends JavaPlugin{PluginManager pm;public static ChatColor red = ChatColor.RED;public static ChatColor green = ChatColor.GREEN;public static ChatColor white = ChatColor.WHITE; public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){if (!cmd.getName().equalsIgnoreCase("arrow"))return false; if(!(sender instance of Player)) {System.out.println("Only available ingame!");return false} return false;} public void onDisable(){System.out.println("ThrowAnArrow has been disabled!");} public void onEnable(){this.pm = getServer().getPluginManager(); System.out.println("ThrowAnArrow has been enabled!");} public static void throwArrow(CommandSender sender) {Player player = (Player)sender;Arrow arrow = player.shootArrow();Vector velo = arrow.getVelocity().multiply(5);arrow.setVelocity(velo);}}