Right-Click Pickaxe Repair

Discussion in 'Archived: Plugin Requests' started by elitemossypl, Aug 30, 2014.

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

    elitemossypl

    Plugin category: Not sure

    Suggested name: Pickaxe Repair

    What I want: I need a plugin which when you right click a pickaxe you automatically repairs.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: repair.pickaxe maybe?

    When I'd like it by: This week/next week
     
  2. Offline

    elitemossypl

    That was quick! Thanks man, Ill try it soon.
     
  3. Ok, tell me how it goes.
     
  4. Offline

    elitemossypl

    bwfcwalshy

    I tried it and for some reason it doesn't work. I try right-clicking with a diamond pickaxe and it won't work. Also if you fix it, will this work with enchanted pickaxes?

    Thanks
     
  5. Offline

    elitemossypl

    bwfcwalshy

    C:\Users\Radek\Desktop\Prison Server OP>java -Xmx1536M -jar craftbukkit.jar -o f
    alse
    Loading libraries, please wait...
    [10:30:37 INFO]: Starting minecraft server version 1.7.9
    [10:30:37 INFO]: Loading properties
    [10:30:37 INFO]: Default game type: SURVIVAL
    [10:30:37 INFO]: Generating keypair
    [10:30:38 INFO]: Starting Minecraft server on *:25565
    [10:30:38 INFO]: This server is running CraftBukkit version git-Bukkit-1.7.9-R0.
    1-10-g8688bd4-b3092jnks (MC: 1.7.9) (Implementing API version 1.7.9-R0.2)
    [10:30:38 INFO]: [PickaxeRepair] Loading PickaxeRepair v1.0
    [10:30:38 WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    [10:30:38 WARN]: The server will make no attempt to authenticate usernames. Bewa
    re.
    [10:30:38 WARN]: While this makes the game possible to play without internet acc
    ess, it also opens up the ability for hackers to connect with any username they
    choose.
    [10:30:38 WARN]: To change this, set "online-mode" to "true" in the server.prope
    rties file.
    [10:30:38 INFO]: Preparing level "world"
    [10:30:38 INFO]: Preparing start region for level 0 (Seed: 4586675370313630567)
    [10:30:39 INFO]: Preparing spawn area: 67%
    [10:30:39 INFO]: Preparing start region for level 1 (Seed: 4586675370313630567)
    [10:30:40 INFO]: ----- Bukkit Auto Updater -----
    [10:30:40 INFO]: It appears that you're running a Beta Build, when you've specif
    ied in bukkit.yml that you prefer to run Recommended Builds.
    [10:30:40 INFO]: If you would like to be kept informed about new Beta Build rele
    ases, it is recommended that you change 'preferred-channel' in your bukkit.yml t
    o 'beta'.
    [10:30:40 INFO]: With that set, you will be told whenever a new version is avail
    able for download, so that you can always keep up to date and secure with the la
    test fixes.
    [10:30:40 INFO]: If you would like to disable this warning, simply set 'suggest-
    channels' to false in bukkit.yml.
    [10:30:40 INFO]: ----- ------------------- -----
    [10:30:40 INFO]: Preparing start region for level 2 (Seed: 4586675370313630567)
    [10:30:41 INFO]: [PickaxeRepair] Enabling PickaxeRepair v1.0
    [10:30:41 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [10:30:41 INFO]: Done (2.707s)! For help, type "help" or "?"
    [10:31:11 INFO]: elitemossyPL[/127.0.0.1:50274] logged in with entity id 306 at
    ([world] -76.84178561412479, 79.0, 303.9630301367744)
     
  6. Offline

    elitemossypl

    I tried it online and it still didn't work. Ill try again

    C:\Users\Radek\Desktop\Prison Server OP>java -Xmx1536M -jar craftbukkit.jar -o true
    Loading libraries, please wait...
    [11:08:09 INFO]: Starting minecraft server version 1.7.9
    [11:08:09 INFO]: Loading properties
    [11:08:09 INFO]: Default game type: SURVIVAL
    [11:08:09 INFO]: Generating keypair
    [11:08:09 INFO]: Starting Minecraft server on *:25565
    [11:08:09 INFO]: This server is running CraftBukkit version git-Bukkit-1.7.9-R0.
    1-10-g8688bd4-b3092jnks (MC: 1.7.9) (Implementing API version 1.7.9-R0.2)
    [11:08:09 INFO]: [PickaxeRepair] Loading PickaxeRepair v1.0
    [11:08:09 INFO]: Preparing level "world"
    [11:08:09 INFO]: Preparing start region for level 0 (Seed: 4586675370313630567)
    [11:08:10 INFO]: Preparing spawn area: 66%
    [11:08:11 INFO]: Preparing start region for level 1 (Seed: 4586675370313630567)
    [11:08:11 INFO]: ----- Bukkit Auto Updater -----
    [11:08:11 INFO]: It appears that you're running a Beta Build, when you've specif
    ied in bukkit.yml that you prefer to run Recommended Builds.
    [11:08:11 INFO]: If you would like to be kept informed about new Beta Build rele
    ases, it is recommended that you change 'preferred-channel' in your bukkit.yml t
    o 'beta'.
    [11:08:11 INFO]: With that set, you will be told whenever a new version is avail
    able for download, so that you can always keep up to date and secure with the la
    test fixes.
    [11:08:11 INFO]: If you would like to disable this warning, simply set 'suggest-
    channels' to false in bukkit.yml.
    [11:08:11 INFO]: ----- ------------------- -----
    [11:08:12 INFO]: Preparing start region for level 2 (Seed: 4586675370313630567)
    [11:08:12 INFO]: [PickaxeRepair] Enabling PickaxeRepair v1.0
    [11:08:12 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [11:08:12 INFO]: Done (2.735s)! For help, type "help" or "?"
    I tried it again and still no luck bwfcwalshy

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  7. elitemossypl Hmmm I am not to sure it should work.

    elitemossypl When you do it does console do anything?

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

    elitemossypl

  9. Offline

    omon23

    <font color="#141414">@</font><font color="#1061b3">elitemossypl</font>
    Hello, I have created this plugin for you. It appears as bwfcwalshy's plugin wasn't working and as it was a simple plugin I thought I'd give it a try. I have tested it on my test server and works for me.

    <Edit by Moderator: Redacted mediafire url>

    Permission to repair the pickaxe is pickaxe.repair. It should also work with enchanted pickaxes.

    - omon23
     
    Last edited by a moderator: Nov 1, 2016
  10. omon23 I just want to point out there were easier ways to do that decompile mine to see. I didn't know 0 would set it to full I got its full durability and tried to set it to that.
     
  11. Offline

    omon23

    bwfcwalshy I just found the method for repairing it on the forums here. I also did try a similar method to yours for getting the right-clicked item but I couldn't get it to work so I thought, to hell with it, and did it the complicated way. Anyways it was just bunch of copy and pasting, just writing the code for one pickaxe then changing it for the other pickaxes.
     
  12. Offline

    Iroh

    Locked.
    We do not support servers with authentication disabled.
     
Thread Status:
Not open for further replies.

Share This Page