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
so can I just change the getEnchantmentByName to getEffectByName? @Irish all other branches are broken and that is why im forced to use pmmp.
?! 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.
@Awzaw Enchantment is the only thing that isn’t working for this plugin.. https://github.com/luca28pet/AdvancedKits :
Try this build, I've only fixed the function name and bumped the API, not yet tested: https://poggit.pmmp.io/ci/poggit-orphanage/AdvancedKits/~
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
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: hours: 0 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.
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.
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