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

AdvancedKits doesn't work with PMMP

Discussion in 'Plugin Help' started by kazuya, Jun 4, 2017.

  1. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
  2. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
  3. Irish

    Irish Baby Zombie

    Messages:
    156
    GitHub:
    irishpacks
    It seems as if you are using the master branch, correct? If so, then I'd use the api3/blocks branch because the method referred to in the error log is the method name from the api3/blocks branch while the master branch is still using Enchantment::getEffectByName() because of copy and pasting.

    Link to api3/blocks:
    api3/blocks
     
  4. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
  5. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    so can I just change the getEnchantmentByName to getEffectByName? @Irish all other branches are broken and that is why im forced to use pmmp.
     
  6. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    ?!
    There are several versions of this plugin on github, can you link to the version you are using, or fork it? Switching to alpha/blocks will likely break other plugins, so I'd advise you to fix it for 3.0.0-ALPHA5 for use with master branch, then make a new branch for 3.0.0-ALPHA6 to use with api/blocks.
     
  7. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
  8. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
  9. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    thanks @Awzaw but enchantment is still broken.
     
  10. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Errors, output? Is anything different?
     
  11. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    it didn’t give any errors, well, it gave me the item and it looked like enchanted but there’s actually no enchantment in it
     
  12. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Screenshot?
     
  13. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    PHP:
    pickaxe:
      
    # Fromat: "id:damage:count:name:ench_name:ench_level"

      # If you want ONLY custom name (no enchantments): "id:damage:count:name"

      # If you don't want enchantments or custom name: "id:damage:count"

      # If you want ONLY enchantments (no custom name): "id:damage:count:DEFAULT:ench_name:ench_level" -- you have to put DEFAULT in the name field

      # If you want more than one enchantment just do: "id:damage:count:name:ench1_name:ench1_level:ench2_name:ench2_level"
      # or "id:damage:count:DEFAULT:ench1_name:ench1_level:ench2_name:ench2_level" if you don't want a custom item name

      # Please note: You have to write numeric IDs
      
    items:
      - 
    "278:0:1:§l§o  Â§6P§ai§bc§e§dk§ea§fx§ce§r:mining_efficiency:10:mining_durability:10"

      
    commands:
      - 
    ""

      
    cooldown:
        
    hours0
        minutes
    10

      
    # Format: "name:time:amplifier"
      # Time is in seconds
      
    effects:
      - 
    ""

      
    # If you do not use pureperms, use 'worlds' to specify in which worlds you want this kit to be used
      
    worlds:
      - 
    "kitpvp"
      
    # If you do not use pureperms, use 'users' to specify which players will be able to get this kit
      
    users:
      - 
    "luca28pet"
      
    "dioconsole"
    This is my kit format and this was working on Tesseract.
     

    Attached Files:

  14. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    I don't believe Enchantments are completely implemented in PMMP.
     
  15. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    oh wow, it's been months since enchanting came out.
     
  16. Irish

    Irish Baby Zombie

    Messages:
    156
    GitHub:
    irishpacks
    It's been years since enchanting has been released, PMMP has implemented certain enchantments on the api3/blocks branch, but I'd avoid using that one spoon that starts with a T because of the poorly written code. More features !== Better software.
     
    Jack Noordhuis and SalmonDE like this.
  17. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    *stuff copied from.other plugins/spoons
     
    Sandertv likes this.
  18. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    yep...
    even redstone and mobs
    but you should keep in mind this is an open source volunteer based project, not a commercial product where creators get paid
     
    corytortoise and EdwardHamHam like this.
  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.