Blocks Broken

Discussion in 'Archived: Plugin Requests' started by Jduffygames, Aug 24, 2014.

  1. Offline

    Jduffygames

    Plugin category: Fun

    Suggested name: BlocksBroken

    What I want: I'd like to have a plugin that puts the amount of blocks you have broken with a certain pickaxe on the name of the pickaxe
    EXAMPLE: I named a pickaxe Miner
    Name: "Miner &7[Blocks Broken: <amount>

    I only really need this for pickaxes, its for my prison server

    INFO: I want it in the name not the lore!


    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin.

    When I'd like it by: When ever possible
     
  2. Offline

    Onlineids

    Jduffygames <Edit by Moderator: Redacted mediafire url>
    Just rename any pick to Miner and mine away into the sunset
     
    Last edited by a moderator: Nov 1, 2016
  3. Offline

    Jduffygames

    [quote uid=90875889 name="Onlineids" post=2768353]Jduffygames <Edit by Moderator: Redacted mediafire url>
    Just rename any pick to Miner and mine away into the sunset[/quote]

    Could you make it work with all names :? And thanks a lot for coding it!! :D


    EDIT: Can you also make it so it does not change Miner to &6Miner? My players like to rename there pickaxes with color and don't want it to be changed :(Just the mined blocks part please
     
    Last edited by a moderator: Nov 1, 2016
  4. Offline

    Onlineids

    Jduffygames So you just want it to add the blocks broken part to the end of the name?
     
  5. Offline

    Jduffygames

    Yes sir
     
  6. Offline

    Onlineids

    Jduffygames So any pick will become a blocks broken counter pick?
     
  7. Offline

    Jduffygames

    Yes but just add the [blocks broken:] dont rename the whole pickaxe
     
  8. Offline

    Onlineids

    Jduffygames Don't think that will be possible seeing as I have to look at the number of blocks broken on the pickaxe's name so I would need to know the actual name of the pick, unless you want me to add it to the lore.
     
  9. Offline

    Jduffygames

    Could there mabye be a scoreboard on the side or something, I saw a server with it and I thought it would be really cool
     
  10. Online

    timtower Administrator Administrator Moderator

    That would be vanilla mechanics, no need for a plugin to do that
     
  11. Offline

    Onlineids

    Jduffygames This is a totally different request -_-
     
  12. Offline

    Jduffygames

    I mean if seen it on a named pickaxe before... but if its not possible never mind
     
  13. Offline

    Onlineids

    Jduffygames I assume your talking about arkham network, they use lore to store blocks broken.
     
  14. Offline

    Jduffygames

    Its in the name
     
  15. Offline

    Onlineids

  16. Offline

    ChipDev

    What? Just get the display name and replace blocks broken: and the old broken int to "" and then set the display name.
     
  17. Offline

    Onlineids

    ChipDev So if the name was 'Pickaxe Blocks Broken: 72' the int would be 'Pickaxe 72' yea I don't think it works like that.
     
  18. Offline

    ChipDev

    Umm..
    Code:java
    1. String s = pickaxe.getItemMeta().getDisplayName().replace("Blocks broken:", "", blocksBroken.toString(), "");
     
  19. Offline

    izarooni

    Code:java
    1. int amt = Integer.parseInt(pickaxe.getItemMeta().getDisplayName().split(": ")[1])
     
  20. Offline

    Onlineids

    izarooni What if they renamed the pickaxe to 'I:Like:Colons:'?
     
  21. Offline

    ChipDev

    Well, Then they renamed a pickaxe of course.
     
  22. Offline

    izarooni

    Onlineids
    The space counts. Just parse the last word in the String array so like, Integer.parseInt(array[array.length -1]);
     
  23. Online

    timtower Administrator Administrator Moderator

    ChipDev And renaming the pickaxe would reset the stats.
     
  24. Offline

    izarooni

    Jduffygames
    I haven't done any Bukkit coding in a while so hopefully <Edit by Moderator: Redacted mediafire url>
    I was testing it out myself and it seemed to be working fine. You can name the pickaxe anything you want; the blocks broken amount is added to the very end of the name on any pickaxe.
     
    Last edited by a moderator: Nov 1, 2016
  25. Offline

    Jduffygames

    [quote uid=90646977 name="izarooni" post=2770791]Jduffygames
    I haven't done any Bukkit coding in a while so hopefully <Edit by Moderator: Redacted mediafire url>
    I was testing it out myself and it seemed to be working fine. You can name the pickaxe anything you want; the blocks broken amount is added to the very end of the name on any pickaxe.[/quote]

    Ooooo It works awesome :3 :D! If it isnt to much trouble could you make it work with axes, and shovels?
     
    Last edited by a moderator: Nov 1, 2016
  26. Offline

    ChipDev

    Or add itemmeta.
    izarooni Source? :D
     
  27. Online

    timtower Administrator Administrator Moderator

    ItemMeta also gets reset on server restart.
    Decompiler?
     
  28. Offline

    izarooni

    Jduffygames
    Updated. Just re-download from the same link above.

    ChipDev timtower [quote uid=87695 name="timtower" post=2771099]Decompiler?[/quote]
    I don't mind giving out my sources. Just ask. <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 1, 2016
  29. Offline

    richboynl

    izarooni maybe you can add WorldGuard support to it Because if im not op and i break a block it will still give another count to brocken blocks fix this plzz
     

Share This Page