Hello, I have a kit-pvp server where you click signs to get certain items and then you pvp. I want these items to not be dropped upon death so they are soul bound or something like that. But in the arena I have enchantment table where they can enchant. When they enchant I want the soul bound to come of them so they can then drop. Commands: /Set soulbound /Unset soulbound Premissions: None. Just op can do the commands Thanks
Thats doesn't do what Im looking for. I want it so they can't drop that specific item and when they die it doesn't drop and they don't get it back. Also the soul bound plugin has to have the play use it before its soul bound so they could just drop it to a normal player also they get it back. Any help?
JabaJamesHD Quote from their page: And if you have a good kit plugin then you can set the lores yourself per player so it is soulbound when they get the item
/soulbound - General info /soulbound [help] - Help information /soulbound [reload] - Reload settings /bind [player] <inventory> - Binds the item in hand to the player, or an entire inventory /bindonpickup - Marks the item as Bind on Pickup /bindonequip - Marks the item as Bind on Equip /bindonuse - Marks the item as Bind on Use /unbind - Unbinds the item You can only set soul bound items when the player either picks it up, equips it or uses it so, this is not what I want. If you don't have anything important to say then don't say it.
JabaJamesHD The plugin uses lores to define the soulbound items, if you set the lore with your kit plugin then they are bound when the player gets the item. Commands aren't everything developers use
@timtower I have a plugin where you get your kit from clicking it on the item frame so thats why I need to set the item to soul bound. Then I put that soul bound item in the frame then when people get the item it is already soul bound
JabaJamesHD In the first post you said signs, that is why I thought that you had the ability to change the lore per player.
@timtower Sorry, This post is old and thats when I used signs. Now I dont Bump. Anyone help me? Can someone please help me?
JabaJamesHD No death drops is very easy I can do that in a 2 minutes But could you explain the whole soulbound thing a bit more? Would it be something as when they respawn/join they cant drop But after they enchant something dropping is enabled for that player till they die or leave?
@BappleCraftColt I have a server where you get your kit by clicking the item frame and you receive that item. Them items I have made so when you die they don't drop and they don't come back. But if you enchant it and die it will drop. In my donator rooms you can get poison swords with enchants, these are drop able so donors will share them with friends. If I make the item soul bound then put it in the item frame when the donators click to get it, it will be souldbound so they can't drop it and when they die the don't drop it but they don't receive it back again. Thats why I need a soul bound plugin where you type /soulbound to make it souldbound
What plugin are you using in the first place to get the soulbound swords? I could just make it so , /soulbound gives the player a soubound sword.
@BappleCraftColt Im using a plugin called item drop and in the config you put the ids of the items you don't want to be dropped. They aren't soul bound
JabaJamesHD Okay, I'm sorta confused atm Now that I know the reason of all this Can you explain just the concept of this request
@BappleCraftColt I have a kit pvp server. You click item frames to get the diamond armour, sword, bow, arrows and goldenapples. In the donor rooms you click the diamond swords with custom enchants like poison to get it. This item can be dropped as its an enchanted diamond sword and not a regular. I want a plugin where I can type /soubound and it makes the item souldbound. So if they drop it, it will come back in there inventory. but if they die with it they don't drop it or get it back.
@timtower No, soul bound has to have the person either use it or equip it. And then when they die it comes back in there inv. I have used it before, its not what I want
JabaJamesHD Okay, When they do the /soulbound command will it change the item in anyway? Like add a lore or change name or such?
JabaJamesHD And this was a typo right? but if they die with it they don't drop it or get it back. That makes no sence..
@timtower And there is a config option for the people not having to use the item before its souldbound?
It is checking the lores as far as I know, so no option needed. Told you that 2 times already, and try hitting the tahg button, or just typing my name after an @, placing an @ and then pasting my user account link won't tag me
@BappleCraftColt whats uhmm about that? @BappleCraftColt They don't drop it so others can pick it up, but they don't get it back again. It just disappears EDIT by Moderator: merged posts, please use the edit button instead of double posting.
JabaJamesHD Oh, my bad It clears the item on death,okay. JabaJamesHD Okay i'm working on the plugin Will be done soon EDIT by Moderator: merged posts, please use the edit button instead of double posting.
JabaJamesHD I really have to go.. I've been up allnight and its 8am I can finish the plugin tomorow But If anybody else wants to take it from here This is what I got so far Code:java package com.bapplecraftcolt; import java.util.ArrayList;import java.util.List; import org.bukkit.ChatColor;import org.bukkit.command.Command;import org.bukkit.command.CommandSender;import org.bukkit.entity.Item;import org.bukkit.entity.Player;import org.bukkit.event.EventHandler;import org.bukkit.event.entity.PlayerDeathEvent;import org.bukkit.event.player.PlayerDropItemEvent;import org.bukkit.inventory.ItemStack;import org.bukkit.inventory.meta.ItemMeta;import org.bukkit.plugin.java.JavaPlugin; public class Main extends JavaPlugin { public void onEnable(){System.out.println("Soulbound Activated");getCommand("soulbound").setExecutor(new Main()); }public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){if ((cmd.getName().equalsIgnoreCase("soulbound")) &&((sender instanceof Player))) {Player player = (Player) sender;ItemStack hand = player.getItemInHand();ItemMeta meta = hand.getItemMeta();ArrayList<String> lore = new ArrayList<String>();lore.add(ChatColor.GOLD + "Non-Shareable");meta.setLore(lore);hand.setItemMeta(meta);}return false;} @EventHandlerpublic void death(PlayerDeathEvent event) {List<ItemStack> iteml = event.getDrops();ItemStack[] items = iteml.toArray(new ItemStack[0]), removed = new ItemStack[0];int removedi = 0;for (int i = 0; i < items.length; i++) {ItemStack item = items[I];[/I][I] ItemMeta itemi = item.getItemMeta();[/I][I] List<String> lore = itemi.getLore();[/I][I] if (lore != null) {[/I][I] if (lore.contains("Non-Shareable"))[/I][I] event.getDrops().remove(item);[/I][I] removed[removedi] = item;[/I][I] removedi++;[/I][I] }[/I][I] }[/I][I] }[/I] [I] @SuppressWarnings("deprecation")[/I][I] @EventHandler[/I][I] public void drop(PlayerDropItemEvent e)[/I][I] {[/I][I] Player p = e.getPlayer();[/I][I] Item item = e.getItemDrop();[/I][I] List<String> lore = ((ItemMeta) item.getItemStack()).getLore();[/I][I] if (lore.contains(ChatColor.GOLD + "Non-Shareable")) {[/I][I] p.sendMessage("Swag");[/I][I] e.setCancelled(true);[/I][I] p.updateInventory();[/I][I] }[/I][I] }[/I][I] }[/I]