Setting a brew result

Discussion in 'Spigot Plugin Development' started by Gorobetz, Jun 11, 2017.

  1. Code (Text):

    public void onEnable(){
        Bukkit.getPluginManager().registerEvents(this, this);
    public void onBrew(BrewingStandFuelEvent e){
        ArrayList<String> lo = (ArrayList<String>) e.getFuel().getItemMeta().getLore();
        String m = lo.get(0);
        int m1 = Integer.parseInt(lo.get(1));
        PotionEffect pot = new PotionEffect(PotionEffectType.getByName(m), 3000, m1, false, false, Color.ORANGE);
        //Set the result to pot
    Custom pots with custom ingrediants plugin I am working on...

    Anyways, how do I set the result effect to pot? Was looking all over the place but could not find anything.