MinusKube / SmartInvs

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

How to make certain slots in an inventory not cancelled? #138

Closed Archy-X closed 4 years ago

Archy-X commented 4 years ago

How do you make certain slots in an inventory normal, where players can move items between them normally? I tried using an InventoryListener and then setting event.setCancelled(false) if the slots match, however moving items between those slots is still glitchy and not 100% normal.

portlek commented 4 years ago

setEditable method can be useful fo that situation.

Archy-X commented 4 years ago

Where do I do this? In the builder or in init can you give an example?

portlek commented 4 years ago

i guess its in the inv. contents.

Archy-X commented 4 years ago

I don't see it?

portlek commented 4 years ago

did you look at 1.3.0?

Archy-X commented 4 years ago

Where do you get the jar for 1.3.0, it lists 1.2.7 as the latest version

portlek commented 4 years ago

https://github.com/MinusKube/SmartInvs/tree/1.3.0 or just use my fork called smart inventory which gets updates.

Archy-X commented 4 years ago

Says missing artifact in pom also where to get the jar for 1.3.0?

portlek commented 4 years ago

there is no 1.3.0 you should clone and run mvn clean install command.

Archy-X commented 4 years ago

1.3.0 is built with gradle I can't use maven commands on it. I'm new to this so can you explain specifically how to do it?

portlek commented 4 years ago

mb. its gradle yes. you should use gradle build command.

Archy-X commented 4 years ago

ClickableItem.of is deprecated, what do I use in it's place?

portlek commented 4 years ago

go to the source codes of clicable item and you will see.

Archy-X commented 4 years ago

Works now, thanks.