Question + Speed effect after hitting someone?

Discussion in 'Plugin Development' started by Prophettt, Jun 17, 2013.

Thread Status:
Not open for further replies.
  1. Offline


    Hello bukkit forum users!

    I'm currently trying to code this but this is a little problem.
    I currently have this:

    public class Rename extends JavaPlugin {
        public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args){
                ((Player) sender).getInventory()
                        setName(new ItemStack(Material.IRON_SWORD),
                                args[0], null));
            return false;
    Currently if you do /simoonssong you just get an Iron sword.
    I want it to be that if you hit someone, it'll give them a big knockback but I don't want a knockback enchant on it.

    I also want it that you get 4 Seconds of Speed II after you hit someone with it.
  2. Online

    timtower Administrator Administrator Moderator

    Prophettt Reported so the thread will be moved to plugin development.
  3. Offline


    Moved to plugin development.
Thread Status:
Not open for further replies.

Share This Page