[please lock]Ban specific enchantments

Discussion in 'Archived: Plugin Requests' started by frash23, Oct 29, 2013.

?

Do you like this idea?

  1. Yes.

    0 vote(s)
    0.0%
  2. No.

    100.0%
  1. Offline

    frash23

    Plugin category: Fixes/Admin

    Suggested name: BanChantments

    What I want: I recently noticed how overpowered the fortune enchantment is.
    One of my players got over 50 diamonds in about 30 minutes with a level 3 one.
    As my server is heavily based around economy, i'd like to change/remove this.

    I want to able to disable fortune II and III, and maybe also change the multiplier (i.e. max x3).

    I would be okay with the plugin only doing this, but for a future version maybe it could be configurable, so you could specify other enchantment levels, and maybe be able to completely disable some enchantments.

    Also, disabling enchantments on specific items.

    Ideas for commands:
    /bch - print version and notify about "/bch help"
    /bch help - print all commands, with syntax and short explanation
    /bch reload - reload config

    -Idea for the last suggestions-
    /bch ban <enchantment> - ban specific enchantment without editing config
    /bch allow <enchantment> - allow specific enchantment that had been banned
    /bch limit <enchantment> <maxlvl> - specify a max level for enchantment

    Ideas for permissions:
    bch.admin - access all commands
    bch.bypass - bypass limits
    -possible idea-
    bch.bypass.<enchantment> - bypass specific enchantment block

    When I'd like it by: Soon, but along the 1.7 release would be pretty nice (no need for updates etc.)


    EDIT: I know plugins like this already exist, but the two i found were far too outdated.

    EDIT2:

    I paid someone else to make this, i no longer need this. Mod please close.
     
  2. Online

    timtower Administrator Administrator Moderator

    frash23 Did you test the found plugins? Outdated isn't the same as broken in bukkit
     
  3. Offline

    frash23

    Hmm. Good point.

    I tested the ones i were able to find, and all of them broke the server, except the one that modified the multipler.
    Even though it worked with no console errors, it still lets fortune III get up to 4 diamonds, which is far too much.

    If someone would modify this, as it seems very simple, i would be very interested.

    I flipped through the .jar file of the plugin, and it really does seem tiny.

    If anyone wants to change this for me (as i cannot properly code myself), please PM me.


    ALSO

    This only fixes the fortune problem.
    A lot of the enchantments also ruin PvP and so on.
    I am still more interested in the request i made in the first post than this, even though i would be extremely thankful for both.
     
  4. Offline

    bobacadodl

    for something simple, just do something like
    Code:
    @EventHandler
    public void onEnchant(EnchantItemEvent e){
    if(e.getEnchantsToAdd().containsKey(Enchantment.FORTUNE))
    e.setCancelled(true);
    }
     
  5. Offline

    frash23

    Even though i am learning java, i am way too busy to get as far as creating a bukkit plugin in a reasonable time period.

    Thanks for the snippet and all, but i am not able to make this myself.

    You wouldn't possibly be interested in making this for me, or better yet, helping me learn how to make this?
     
  6. Offline

    reddy360

    I'll have a go at it.
     
  7. Offline

    frash23

    reddy360 That'd be awesome.
    Are you able/willing to do the whole config thing too?

    EDIT:
    I paid someone else to do this, mod please close.
     

Share This Page