[MECH] NoMore v0.7 - Control what you're picking up [766]

Discussion in 'Inactive/Unsupported Plugins' started by WolfGangSen, May 15, 2011.

  1. Offline

    WolfGangSen

    Version: v0.7

    With this plugin you can stop your inventory filling with that useless gravel or piles of cobblestone, by blacklisting blocks.

    A blacklisted drop will just stay oon the floor.

    You can now specify that the blacklist only takes effect when you already have an ammount in your inventory. Customizable per block type.


    Features:
    • Blacklist an item, preventing you from picking it up.
    • Remove an item from the blacklist.
    • List blacklisted block tpyes.
    • As OP you can enable the destroy feature which will destroy the blacklisted blocks dropped around you.
    • Can define how many you want to pickup of each item before the blacklist takes effect.



    Usage:
    things in [] are optional (ammount defaults to 0).

    • "/nomore [ammount]" - will add the item in hand (or target if none in hand) to the blacklist where ammount is a number for maximum to pick up.
    • "/nomore look [ammount]" will add target blocks type to the blacklist where ammount is a number for maximum to pick up.
    • "/nomore list" - will list current blacklist.
    • "/nomore destroy" - will toggle destruction of blacklisted items.
    • "/pickup" - will remove the item in hand (or target if none in hand) from the blacklist.
    • "/pickup look" - will remove target blocks type from the blacklist.
    Permission nodes
    • nomore.use - allows the use of /nomore
    • nomore.destroy - allows use fo the destroy feature
    Download
    Source Code



    To Do:
    • Enable giving a material name or ID as an argument for blacklisting and removing form blacklist
    • Permissions (along with op system)
    • save between server restarts.
    • config file
    • complete list of reassignment values (stone -> cobble etc, if you can list some please do).
    Bugs:
    • A large drop (a dropped stack) wil be picked up if you are under your limit and can take you over.
    Changelog:
    v0.8
    • Added permissions. (please test)
    • Made source available
    • looking into disallowing pickups for certain items per group (as suggested by brvtvs)
    v0.7_1
    • Added more reasignment values.
    • Added announcment for player join to tell them their current blacklist.
    • Temporeraliy spliting to 2 versions (1 without any requirements for op).
    v0.7
    • Complete rewrite
    • Added ability to specify maximum to pickup
    • All previous features
    vo.4_1
    • Released to 766 (no real changes).
    v0.4
    • Added the ability to destroy drops around you if blacklisted. (currently requires op)
    v0.3
    • If not holding item it will take material of target block.
    • Added list command.
    • Added look command.
    • When blacklisting or unblacklisting it now tells yout the material.
    v0.1
    • Initial Release
    Thankyou's
    • MineralMC - Bug testing and general improvement suggestions
    • obliv, pricella - failhouse.net crew
     
    thecoolwolf likes this.
  2. Offline

    killerrj8

    Thats nice :)
     
  3. Offline

    Plague

    please update to latest recommended CB
    the plus sign is forbidden to use
     
  4. Offline

    WolfGangSen

    Ok sorry didnt know

    Update

    now with definable pickup limits.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  5. Offline

    deleted_70790

    Nice idea!
     
  6. With this plugin, would it be possible for my noone in my Creative world to pick up any blocks (they can spawn them), but have everything go as normal in my PVP world?
     
  7. Offline

    Brvtvs

    This is a perfect plugin, I have been looking for a way to prevent different classes from picking up eachother's loadouts.
     
  8. Offline

    WolfGangSen

    This plugin is per user.
    currently there is no setting for groups or so.

    Its to stop your inventory cluttering.

    If you want other features list them and i will see about adding them.

    And atm its global not per world.
     
  9. Offline

    MineralMC

    Works well, pretty much identical to a plugin request I thought had been unanswered!

    Thanks for taking this up, WolfGang! You'll be loved for it as more people realise what it does! :)

    Oh right, and +1 for permissions. Hoping to give this as a purchasable ability to my players.

    The ability to toggle /nomore destroy as a global thing would be nice as well (persistence, via a configuration file, ideally).

    ----

    Well, it was working, haha:

    CraftBukkit 766, latest build of NoMore. Attempted to use the /nomore command while holding a block of cobblestone.
     
  10. Offline

    Brvtvs

    Suggestion: It would be great if you could have either a permission node to disable all pick ups, a txt blacklist, or some other way to have groups not be able to pick up certain or all items, over restarts. I would really enjoy that to keep my classes from obtaining eachother's loadouts.
     
  11. Offline

    WolfGangSen

    ill look into group stuff. but what do you mean by loadouts?

    D:

    I can't reproduce it. Any more information?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  12. Offline

    MineralMC

    I'll try a server restart tomorrow and see if it resolves it. It was working fine, not too sure what triggered it.
     
  13. Offline

    Brvtvs

    I am using commandsigns to give people a kit and then warp them to the battlefield, the kit being defined by their class. I just need something to prevent people from picking up those kits from defeated enemies.
     
  14. Offline

    MineralMC

    LWC coupled with tombstone would work for this purpose, just set the tomb removal time to a couple of seconds.
     
  15. Offline

    ClearTranquil

    Nice mod. I needed something like this.

    Don't mean to be a total stickler, but in the title you need a "you're" instead of "your".
     
  16. Offline

    WolfGangSen

    >.> (burns self)
     
  17. Offline

    MineralMC

    Still getting the unhandled exception, @WolfGangSen - is there a debug/verbose mode I can turn on, to try figure out what is causing this?
     
  18. Offline

    WolfGangSen

    How are you casuing it?

    Just using cobble?
     
  19. Offline

    MineralMC

    What the hell. It's working fine, now. Really no idea what caused that!

    Well hey, that's certainly a good thing! What's your thoughts on persistent block destruction, not just for ops? I'm worried about all the scattered blocks from this plugin causing server lag.

    ---

    Also, got a player-submitted suggestion for you! The ability to set the default number for /nomore in a configuration file. One of my players stopped themselves picking cobble up completely, and had to go topside to find placed cobble in order to re-allow it.

    I agree, I think the default being '0' is a bad idea - 1 would help weed out the... simpler users, I suppose!

    Haha, and my players are calling it "Blocklist" instead of "NoMore".
     
  20. Offline

    WolfGangSen

    lol

    And the cobble issue. I am making it detect the block types that dont drop that block type.

    grass now blackists dirt
    stone -> cobblestone
    snow -> snowballs
    leaves -> saplings
    etc

    i dont think this is an issue as apart from stone you cant pick the others up without cheating. And stone you will only get if someone drops it for you or you do yourself.

    And yes i will add a config file. but for now the default will be 64 seeing as thats what most things stack to anyway.

    But untill i make the congfig file i wont add the non op option for destroying items.
    Or maybe i will release 2 versions for now. (becasue your right allot of drops can cause lag)

    Also wanna ask em if they want their name in the credits. Bug testing is something i really regard as important and deservs some credit.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  21. Offline

    MineralMC

    Haha, the players over at failhouse.net; obliv, pricella and co!

    Regarding the default number, I mean when a player uses /block while holding a specific block, but without specifying a number.. Currently, it sets it as "0"; the ability to change this default value in the config would be greatly appreciated!
     
  22. Offline

    Bronski

    Excellent idea for a mod :)

    Dirt be gone! Grass rules the day!
     
  23. Offline

    MineralMC

    Getting a pretty major JRE fatal crashes, resulting from a plugin doing something crazy with Chunk.getBlock - I figure it's either NoMore or Showcase, since it's only started doing it since I put the the two of them in.

    Here's the error readout:
    http://pastebin.com/tGGCKkrh

    <cross-posted to the Showcase thread>
     
  24. Offline

    WolfGangSen

    try running without Nomore for a while?

    Also i dont specifically reference chunk to get block. So unless its something that craftbukkit does automatically for another function. hmmm
     
  25. Offline

    WolfGangSen

    updated and added source

    Please test permissions
     
  26. Offline

    MineralMC

    I've excluded the plugin from my server and we've been running stable for 2 days now, with no JRE crashes. They were originally occurring roughly every 8 hours, so it seems to be NoMore causing them - any idea what to do next, wuff?
     
  27. Offline

    WolfGangSen

    D:
    None at all.

    Mine has been running fine without crashes.
    I'm not an expert programmer, it's more of a hobby so I have no idea where to start with the information I have.

    The source is available if you know someone that wants to have a look.
     
  28. Offline

    MineralMC

    I'm pretty busy this weekend, but I could ask @cereal to take a look at it at some point next week. I spoke to him about it on IRC and he said something about it trying to write to memory it didn't have access to.

    I figure if it was a common issue more people would be reporting it, so I wouldn't worry too much!
     
  29. Offline

    PsychoNecrosis

    For having lots of blocks causing lag, I'd look into what worldedit does for the //remove item <radius> command.

    You could have the plugin count each time it's triggered, and once that (configurable) amount is reached, run the remove item code to erase items in say.. a 5 radius circle centred on the user.

    Just my 2 cents.
     
  30. Offline

    TD0615VFX

    hey i really love this plugin but everytime i disconnect or die my blacklist resets i dont know if its just me or if its supposed to do that if it is then i suggest that you make it so it stays because it can be really irritating to have to keep redoing the blacklist
     

Share This Page