I've been looking and looking javadocs when you click with your item on the ground or in the air like the effect of a potion of any help? this can help me: http://jd.bukkit.org/dev/doxygen/d8...Effect.html#a5632e95bae6f9b59eedfff154bb7d655 http://jd.bukkit.org/dev/doxygen/d4/da7/classorg_1_1bukkit_1_1potion_1_1PotionEffect.html http://jd.bukkit.org/dev/doxygen/d3/d70/classorg_1_1bukkit_1_1potion_1_1PotionEffectType.html or some code plz
I've been looking into potion break and can not find it and tried with this: I want some help to do that when you click with a pen as you speed or something (effect of a potion): Code: import com.google.common.collect.Maps; import java.util.Map; import org.bukkit.Effect; import org.bukkit.Material; import org.bukkit.block.BlockFace; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.potion.Potion; public class Asesino extends JavaPlugin { private final int id; public void onEnable(){ } public enum Effect { POTION_BREAK(2002, Type.VISUAL, Potion.class), private final int id; private final Type type; private final Class<?> data; private static final Map<Integer, Effect> BY_ID = Maps.newHashMap(); Asesino(int id, Type type) { this(id,type,null); } Asesino(int id, Type type, Class<?> data) { this.id = id; this.type = type; this.data = data; } @Deprecated public int getId() { return this.id; } public Type getType() { return this.type; } public Class<?> getData() { return this.data; } @Deprecated public static Effect getById(int id) { return BY_ID.get(id); } static { for (Effect effect : values()) { BY_ID.put(effect.id, effect); } } public enum Type {SOUND, VISUAL} }