1.7.10 ADD item

Discussion in 'Spigot Plugin Development' started by Esteban123, Mar 19, 2020.

  1. Hello, does anyone know why you won't give me the item? I use a uhc api so that within minutes of pvp it delivers a compass

    Attached Files:

  2. Choco


    You method should be annotated with @EventHandler and registered to the plugin manager. Additionally, you're annotating the method with @SupressWarnings("unused") but there are no unused values. You can remove this annotation. Lastly, create constants for your item (the new ItemStack() call. Create a private static final field) and your API class. If your API class is stateless, it should be a utility class with static methods.