[REQ] Prevent users from holding a certain named item(s)

Discussion in 'Archived: Plugin Requests' started by Archespore, Aug 11, 2013.

  1. Offline

    Archespore

    Plugin category: Admin Tools (I guess?)

    Suggested name: AntiHold (I really don't care)

    What I want: I need a plugin that prevents a user from holding/using a named item. I understand there are plugins about there that prevent a user from holding an item but I want a plugin that prevents users from holding or using an item with a certain name. For example, I would like to let a certain permission group use a diamond sword with attributes that give the player +2 health, but I don't want other players NOT in that group be able to use it. So, I would name the sword something like "The health sword" and then give users the permission player.hold."item name" this way anyone can use diamond swords BUT only a certain group can use the diamond sword with +2 health. I would also like it if there was a way to make permissions via the config, so if I wanted to make another item along with "the health sword" I could add a permission node in the config, so I would have two in there like player.hold.the_health_sword and player.hold.doombringer. also is there a way to ignore format codes and color codes in the permissions? That way if I name a sword with a color like &2The Health Sword I wouldn't have to put the &2 in the permission node.

    Basically I need a plugin that allows you to hold a certain item with a custom name, but others cannot. I would like it so you can add permissions in the config so you can have unlimited named items only certain players can use.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: player.hold."A name of an item"

    When I'd like it by: End of the week or sooner 8/11-8/17 (I would like it by today or tomorrow to be honest, but I can take it whenever)
     
  2. Offline

    Archespore

    Bump* Anyone ? I kinda need this as soon as possible :/
     
  3. Offline

    Commander9292

    Why don't we just make it so if they are in that group then their diamond sword gives them the extra health and if they aren't in the group the sword doesnt give them the health? So no renaming. Just a suggestion. By the way, I never said I was making this.
     
  4. Offline

    BurritoBashr

    If you're using PermissionsEx you can use ModifyWorld and give them the permissions like "- modifyworld.hold.58" and they can hold item 58.
     
  5. Offline

    Archespore

    Commander9292
    That's the thing though I want to be able to make other custom swords than JUST +2 health, for example I want to make a warrior class, and in this warrior class I want them to be able to pick from different swords all with different attributes, BUT I don't want another class like an archer be able to use these said swords... It's kinda dumb if the warrior can only use one sword but an archer can use like 20 different arrows. Plus as I said I want archers to be able to use swords but I don't want them to be able to use these special kinds... That's why if this plugin is created each sword for the warrior will have a special name...

    BurritoBashr
    As I said, I still want other players to be able to use the sword but I don't want them to be able to get the benefit

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  6. Offline

    Commander9292

    Archespore I don't think you're understanding what I'm trying to say. I said that we could just make it so IF they pick warrior they get the warrior stuff and if they don't pick warrior they don't get that stuff they'll get the stuff they're supposed to but it could all be the same items its just if they pick different classes give the items different effects.
     
  7. Offline

    Archespore

    There is obviously some miscommunication, let me try to start over.i need a plugin that will make it so only a certain class can equip a certain weapon. I don't want archers to be able to kill a warrior and then be able to take his/her weapon and the. Use it, here is why: Mojang just realeased the ability to put attributes on items meaning if you hold and item with a certain attribute, then you get those effects. The problem is I want users to be able to buy DIFFRENT kinds of swords ALL with DIFFRENT attributes. For example one sword may increase your knockback resistance, but it will also decrease your speed. Another one may increase your health but decrease attack power. The problem is that by just 'giving' the class the desired effect/attribute, that leaves no room for weapon options. I want players to be able to choose which effects they want, for example, should a warrior pick a sword that gives him extra health but less attack, or should he pick a sword which gives knockback resistance, but slower speed? I also want to make sure that if the warrior dies an archer cannot go and pickup his sword and use it, because his class is not the warrior. That being said, I DO want to still allow archers to use swords just like how warriors will be able to use bows, but I don't want the archer to be able to pickup and use a sword that is meant for the warriors
     
  8. Offline

    Awesomeman2

    Archespore If they pick class # 1 the diamond sword gets sharpness 5 if they pick class #2 the diamond sword gets sharpness 2 EXAMPLE
     
  9. Offline

    Archespore

    Awesomeman2 your not understanding, I said I want weapon choice giving them a weapon with sharpness 5 doesn't allow for weapon choice, that still ruins the whole point if class #2 kills class #1 he shouldn't get his sword.... The way I propose to fix this is to name each sword/weapon for each class differently and making it so class #2 cannot use the class #1 item
     
  10. Offline

    Commander9292

    Archespore Why not just say if the player has a class then don't drop their items when they die, just delete them instead.
     
  11. If a player can't hold it, will the plugin delete that item?

    Suggestion: WHen they died without holding it, the player will drop it but delete it right away
     
  12. Offline

    Archespore

    Because I still want to allow users to be able to loot and sell items, like runescape or basically most RPGs, even if you get an item that's not for your class, you can then sell it to make money, or you can trade for something else with it. Not only that, there will be items that players can still use, like food, potions, items, blocks ect. If you get no loot from pvp what's the point? The pvping will most likely decrease and some players even use pvping as a source of income in games.

    No I don't want to plugin to delete the item as I said in the post above I still want users to be able to sell it or trade at a market or something
     
  13. Offline

    AndyMcB1

    if (player != class){
    dontAllowUsage();
    }
     
  14. Offline

    Archespore


    you get the idea, but that's not what I need, an actual plugin would be helpul
     

Share This Page