Codisimus / PhatLoots

Bukkit Plugin which provides highly configurable loot for all
http://codisimus.com/phatloots
18 stars 58 forks source link

Lootbags not working #44

Closed Porama6400 closed 1 month ago

Porama6400 commented 8 years ago

Lootbags not working after i linked it , it says i has been link but nothing happened after click

Porama6400 commented 8 years ago

PhatLoots ver. 4.1.1 Spigot 1.8.8 Server : Ubuntu server 15 Java : open-jdk8-jre

No stacktrace

When i use lastest PhatLoots stacktrace say no method Inventory.getItemInHand that method remove in 1.9 , isn't it?

tara81 commented 8 years ago

Use v 4.1.x if you are on spigot 1.8.8

When you link a lootbag, it doesnt tell you it has been linked, which makes me think you have lootbags confused with phatloots.

Phatloot: A loot that can be linked to a chest/dispenser/etc according to config. Lootbag: A phatloot that is linked to an item/block (like an enderchest item), useable by right clicking.

To create a Lootbag you first need to make a phatloot. You also need a lore plugin like lores(made by the same guy) to add underlore.

Link to lores: http://dev.bukkit.org/bukkit-plugins/lores/

Then you need to add the name of the phatloot in the underlore which respects the key in the config. . Config Example:

Using LootBags may cause lag if you have many items with a lot of lore on the server

LootBags: true LootBagKey: '&3&0&k'

Finally, you hold the lootbag you want in your hand, and add the lore to the lootbag. /lore name &aAwesome Treasure /lore add &a- Right click to Open!
/lore add &3&0&k[phatlootname]

The first lore is optional, I just put it there to show you that if you are making a lootbag, you would want the players to know its a lootbag and how to open it.