Limit how many blocks a player can place.

Discussion in 'Plugin Requests' started by xOrlxndo, Mar 5, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    xOrlxndo

    Plugin category: Grief Management

    Minecraft version: Spigot 1.10

    Suggested name: PlacementLimits (I don't know)

    What I want: I want a limit placed on how many blocks of a certain type that a player can place. For arguements sake i'll say for now that this limit is 10 dirt blocks. This means that the player would place the first 10 blocks perfectly normally. However, when they try and place an 11th, instead of placing the block it would display a message in the chat explaining that they're over the limit which would be customizable in config.

    The slightly more complicated part comes in because I want to be able to make the counter go down again if you delete the dirt blocks that you previously placed. This would essentially allow a maximum of 10 of your dirt blocks to be placed at any one time. Also, making sure that you have to delete the blocks you placed and not any other dirt blocks.

    One more thing, I would also like this plugin to work with things like signs, player skulls, banners, ect...

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin

    When I'd like it by: Anytime :)
     
  2. Offline

    Ricecutter0

    @xOrlxndo I'll go ahead and get started on this tonight :)
     
  3. Offline

    xOrlxndo

    Great! Thanks :)
     
  4. Offline

    MrGeneralQ

    If I may give you a hint/feature?

    Think about subtracting the amount when they remove a block again and it would be even better if you would save the actual block location so a player doesn't break any random Grass block to place another block.

    Good luck with the Plugin!

    Verstuurd vanaf mijn A0001 met Tapatalk
     
  5. Offline

    xOrlxndo

  6. Offline

    xOrlxndo

  7. Offline

    xOrlxndo

  8. Offline

    Firestar311

    If you would be willing to wait 2-3 days, I can get this completed within that timeframe (I am a bit busy, but can find the time)
     
  9. Offline

    WALRENT

    I think I've got a version of this that would work; the default is 50 blocks but can be changed in the config once it's generated. I thought I commented before saying I was starting on this but it looks like I forgot to actually post that; here's a link to the sample jar - https://www.dropbox.com/s/nkkjnd9pcft7q26/BlockCap.jar?dl=0

    I coded this for Spigot 1.11.2

    I apologize to anyone that may have started this because I forgot to post :(

    - Walrent
     
    Last edited: Apr 23, 2017
  10. Offline

    xOrlxndo

    So where can I find the full version of the plugin?
     
Thread Status:
Not open for further replies.

Share This Page