PrisonRepair [EASY]

Discussion in 'Plugin Help/Development/Requests' started by Kyle4587, Jul 25, 2015.

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

    Kyle4587

    Plugin category: Fun

    Suggested name: PrisonRepair

    What I want: I
    The plugin will allow certain ranks to repair items for their ranks specific price. For example, say A rank costs $5,000 to rankup, and the last rank costs $50,000,000 the repair price amount should change. So the A rank doesn't have to use a lot of money, or the last rank has to pay much more. In the config, you can put the groups you have, and how much each /repair (per item) costs. Below is an example:

    Repair Prices and Groups
    - Prisoner: 50,000
    - Trainee: 100,000
    - Mastermind: 1,000,000

    Ideas for commands:
    /repair


    Ideas for permissions:
    No permissions needed

    When I'd like it by: The earliest it can be completed.
     
    Last edited: Jul 26, 2015
  2. Offline

    Eos

    Are you using permissionex or essentials for the groups?
     
  3. Offline

    Kyle4587

    I am using PEX for the groups. But I guess I am using EssentialsChat if that is anything to do with groups.
     
  4. Offline

    khave

    Please do not label something as easy if you have no Java knowledge.
     
    _feedDz likes this.
  5. Offline

    Kyle4587

    @khave Well, I mean it's nothing complex to what I thought. I was comparing it to a high-class plugin. But yes, my apologizes I shouldn't have said that it was "easy"
     
  6. Offline

    bwfcwalshy Retired Staff

    @Kyle4587 You can do this in Essentials.
     
  7. Offline

    Ruptur

  8. Offline

    bwfcwalshy Retired Staff

    @Ruptur Nevermind, you can make commands cost but not for different groups.

    @Kyle4587 I can do this, it is a simple plugin.
     
  9. Offline

    Kyle4587

    @bwfcwalshy awesome! From my little knowledge of Java I thought this was pretty simple.
     
  10. Offline

    Kyle4587

    @bwfcwalshy do you have a time on the plugin's release?
     
  11. Offline

    bwfcwalshy Retired Staff

    @Kyle4587 I will have it soon, waiting to upgrade to Windows 10 before I finish it off.
     
  12. Offline

    Kyle4587

    @bwfcwalshy Hey, hows the plugim coming? Have you completed it
     
  13. Offline

    bwfcwalshy Retired Staff

    @Kyle4587 Not tested but here.

    DOWNLOAD

    Commands:
    /repair - Repair an item
    /fix - Alias for /repair

    Permissions:
    Depends on rank

    Depend:
    Vault
    Economy plugin

    Config:
    Code:
    Groups:
      Prisoner:
        Cost: 50000
        Permission: prisonrepair.prisoner
      Trainee:
        Cost: 100000
        Permission: prisonrepair.trainee
      Mastermind:
        Cost: 1000000
        Permission: prisonrepair.mastermind
     
  14. Offline

    Kyle4587

  15. Offline

    bwfcwalshy Retired Staff

    @Kyle4587 Do you have any of them permissions? And please post your config.yml
     
  16. Offline

    Kyle4587

    Yes, I am using the Prisoner permissions, while I am in the Prisoner rank.

    Code:
    Groups:
      Prisoner:
        Cost: 50000
        Permission: prisonrepair.prisoner
      Trainee:
        Cost: 100000
        Permission: prisonrepair.trainee
      Mastermind:
        Cost: 1000000
        Permission: prisonrepair.mastermind
     
  17. Offline

    bwfcwalshy Retired Staff

    @Kyle4587 I'll look into it tomorrow.

    EDIT: Fixed, same download link.
     
    Last edited: Aug 1, 2015
  18. Offline

    Kyle4587

    @bwfcwalshy Now I don't get an internal error but I get this error when I type /repair

    "An error occured. Error: Loan was not Permitted
    /repair [hand:all]"
     
  19. Offline

    Kyle4587

  20. Offline

    bwfcwalshy Retired Staff

    @Kyle4587 Errrm.. Do you have enough money? Does it print an error in console? If so can I please have it.
     
  21. Offline

    Kyle4587

    Nevermind, I didn't have enough money! Thanks for the plugin! @bwfcwalshy
     
  22. Offline

    Kyle4587

    @bwfcwalshy can you possibly add when they type the /repair it asks for confirmation? Like "Are you sure you want to repair your item for (x)? Type /repair to confirm!"

    Also, can you have it so it only repairs tools, I can type repair when I am holding dirt and it repairs it, and takes the money.
     
  23. Offline

    bwfcwalshy Retired Staff

Thread Status:
Not open for further replies.

Share This Page