mastercake10 / CustomOreGen

A simple yet powerful, fully customizable cobblestone generator for Bukkit
GNU General Public License v3.0
11 stars 11 forks source link

Bentobox Custom Cobblestonegenerator only works in the main world #15

Closed Peda1996 closed 5 years ago

Peda1996 commented 5 years ago

I just wanted to add the feature, that users can use their nether, and end world for generating (different) custom ores. But the problem is, that the plugin doesn't recognize the end and the nether, therefore only default cobblestone is generated.

Would also be cool if you could enable water in nether with this plugin ^^

Is there any way of solving this?

Peda1996 commented 5 years ago

The mistake is within the api, as it only returns the main world, and the nether and end is not returned.

I fixed it by adding the end and the nether to the world:

    @Override
    public String[] getSkyBlockWorldNames() {
        return api.getIWM().getOverWorlds().stream().map(w -> w.getName()).map(w -> new String[]{w,w+"_nether",w+"_the_end"}).flatMap(l -> Stream.of(l)).toArray(String[]::new);
    }
mastercake10 commented 5 years ago

Hey, thanks for investigating in this. Could you create a PR?

Peda1996 commented 5 years ago

Well, but i have rewritten the whole project structure, as i couldn't compile the project with the current pom.xml, also the plotsquared hook was missing.