MinusKube / SmartInvs

Advanced Inventory API for your Minecraft Bukkit plugins.
https://minuskube.gitbook.io/smartinvs/
Apache License 2.0
263 stars 65 forks source link

Change title for existing inventory #204

Open Matix-Media opened 2 years ago

Matix-Media commented 2 years ago

Hello, I want to change the title of an existing inventory. Is that possible?

Leguan16 commented 2 years ago

As far as I know its not possible to change the name of an existing Inventory. Quickfix would be creating a new inventory and set the provider to your already existing class.

        SmartInventory inventory = SmartInventory.builder()
                .id("playerInv")
                .title(playerName)
                .provider(new InvSeeInventory(toSee))
                .size(4,9).build();