Question Crops dont load

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

UnOwly

New member
Jan 29, 2024
3
0
1
Hey everyone,
Im currently working on a simple chunkloader plugin, but running into an error kind of thing.
The chunks keep loaded while no one is on the server (tested this by a simple hopper furnace system), but crops wont grow at all. I checked the properties in case something went wrong there but no solution at all.

I provide you my event handler method and my main class, but with docs it should be working that way or do i miss something out?

Java:
    @EventHandler
    public void onBlockPlace(BlockPlaceEvent event){
        if (event.getBlock().getType() == Material.TORCH){
            Chunk chunk = event.getBlock().getChunk();
            chunk.load();
            event.getPlayer().sendMessage("ChunkLoader gesetzt!");


        }
    }


Java:
    @Override
    public void onEnable() {
        getServer().getPluginManager().registerEvents(new ChunkloaderListener(), this);

    }

Hope somebody can help me out, thanks in advance!

unowly
 
Version Output
1.20.4