1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

I need a updated /fix plugin

Discussion in 'Requests' started by shiro chan, Aug 5, 2020.

  1. shiro chan

    shiro chan Creeper

    Messages:
    4
    GitHub:
    shiro-chan
    Hello, I just got a repair plugin but its has no config for adding price for doing the command, what I want to happen is when a default rank do a /fix itll cost him like 10k to fix his item on hand and if he do /fix all itll multiply on how many items are damaged but if a player has a rank itll be free.
     
  2. Primus

    Primus Zombie Pigman

    Messages:
    749
    Sounds like Pay To Win.
     
  3. shiro chan

    shiro chan Creeper

    Messages:
    4
    GitHub:
    shiro-chan
    no, most of the skyblock servers has that kind of plugin
     
  4. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    There is a plugin for it, wait im searching for it.
     
  5. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    @shiro chan


    Here is a plugin, CLICK

    /repair hand
    /repair all

    Set Prefix to SOLVED.
     
  6. shiro chan

    shiro chan Creeper

    Messages:
    4
    GitHub:
    shiro-chan
    thats what i have in my server, there is no config for adding a price for running the command
     
  7. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    im not sure but you can just set $item->setDamage(0);
    mybe its work.
    More Explain:
    PHP:
    //onCommand
    switch($sommand->getName()) {
    case 
    "handrepair":
    if (
    $item->getDamage() !== 0) {
    if (!
    $player->hasPermission("Repair.Free")) {
    if (
    $EconomyAPI->myMoney >= 10000/*This will Reduce 10K Money from player*/) {
    //reduce money from player
    $item->setDamage(0);
    } else {
    $player->sendMessage("You dont have enough money :X");
    }
    }
    }
    }
    return;
    break;
    }
     
  8. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    Oh, you want to reduce money from player?
     
  9. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    i'll make a plugin like what do you want, good idea :p
    also i want set XP - MONEY for take it from player (like cash) and repair them...

    today i'll start to make this plugin ;)
     
    shiro chan likes this.
  10. Primus

    Primus Zombie Pigman

    Messages:
    749
    How you know which Economy plugin is he using? By the way check out this old garbage I wrote long time ago: Economizer
     
  11. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    im still waiting for approve plugin...
    tag Poggit reviewrs here :p
    tp approve faster Xd
     
  12. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    now you can download it Here:

    https://poggit.pmmp.io/p/EasyRepairItems/1.0.0

    any more problems?
     
  13. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    set prefix to solved
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.