QUOTE: Be someone’s rainbow today.

feat: Added creative world - poppy - A feature-rich Minecraft plugin which enhances gaming experience

poppy

A feature-rich Minecraft plugin which enhances gaming experience
git clone git://192.168.2.2/poppy
Log | Files | Refs | README

commit c6d639d26f4409a9938f29efe7717fd0d60cec59
parent 4ed4dcf16628fd1edff8993dd91a8bd88603fe55
Author: chunksize <reisingerluca@gmail.com>
Date:   Sun, 17 Sep 2023 18:56:04 +0200

feat: Added creative world

Diffstat:
Msrc/poppy/Main.java | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/poppy/Main.java b/src/poppy/Main.java @@ -6,6 +6,8 @@ import org.bukkit.GameMode; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.NamespacedKey; +import org.bukkit.WorldCreator; +import org.bukkit.WorldType; import org.bukkit.block.Block; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; @@ -99,6 +101,11 @@ public class Main extends JavaPlugin NamespacedKey key = new NamespacedKey(this, "leather"); FurnaceRecipe recipe = new FurnaceRecipe(key, new ItemStack(Material.LEATHER), Material.ROTTEN_FLESH, 1, 200); Bukkit.addRecipe(recipe); + + new WorldCreator("creative") + .type(WorldType.FLAT) + .generateStructures(false) + .createWorld(); } @Override