crashtheparty / EnchantmentSolution

Enchantment plugin for Custom Enchantments.
15 stars 13 forks source link

Enchants showing in enchanting table when disabled #62

Closed star-kissed closed 4 years ago

star-kissed commented 4 years ago

Enchantments like souldbound are showing up in the enchant table and is the only option players can choose even though the permission for table is false. I have advanced options and permissions set to true.

crashtheparty commented 4 years ago

Permission being false is the default, if it’s false it means they DONT need the permission to access it.

star-kissed commented 4 years ago

I don’t want people to be able to get certain enchants in the enchanting table. Use permission is true so they have to have the permission to get it. Permission for soul bound level 1 in table is false. But they can still get it in the table. What am I doing wrong?

star-kissed commented 4 years ago

Only soul bound and infinity are showing up in the enchanting table

crashtheparty commented 4 years ago

Send the debug.yml file created with /esdebug

star-kissed commented 4 years ago

I am unsure of how to send you the file without it looking messy ._. Sorry I am new to this

crashtheparty commented 4 years ago

You can use pastebin for it

star-kissed commented 4 years ago

time: '2020/02/18 14:37:50 EST -0500' version: bukkit: '1.14.4' bukkit_num: 8 plugin: '2.2.6' plugins: jobs_reborn: false mcmmo: 'Overhaul' mcmmo_version: '2.1.110' config: anvil: level_divisor: 4 custom_gui: true default_use: false max_repair_level: 60 damage: true enchanting_table: custom_gui: true level_fifty: true lapis_in_table: true grindstone: custom_gui: true use_legacy: false take_enchantments: false set_repair_cost: true destroy_take_item: true max_enchantments: 0 update_legacy_enchantments: false use_enchanted_books: true disable_enchant_method: 'vanish' enchantment_check: 300 drop_items_naturally: true language: 'en_us' language_file: 'language.yml' villager_trades: false use_comments: true protection_conflicts: true lore_on_top: true version: get_latest: true get_experimental: false wiki: on_login: true on_timer: false timer_seconds: 14400 url: 'https://bit.ly/2N54NzC' loots: mobs: use: false bookshelves: 0 levels: 0 treasure: false fishing: use: true bookshelves: 0 levels: 0 treasure: true chests: use: true end_city_treasure: bookshelves: 15 levels: 3 treasure: true simple_dungeon: bookshelves: 0 levels: 0 treasure: true shipwreck_supply: bookshelves: 0 levels: 0 treasure: true woodland_mansion: bookshelves: 10 levels: 1 treasure: true stronghold_library: bookshelves: 10 levels: 1 treasure: true stronghold_crossing: bookshelves: 10 levels: 1 treasure: true stronghold_corridor: bookshelves: 10 levels: 1 treasure: true underwater_ruin_big: bookshelves: 0 levels: 0 treasure: true underwater_ruin_small: bookshelves: 0 levels: 0 treasure: true pillager_outpost: bookshelves: 10 levels: 1 treasure: true gametype: 'survival' fishing: Enchantments_Rarity_30: COMMON: enchants:

crashtheparty commented 4 years ago

bane_of_arthropods: enabled: true treasure: false advanced: weight: 'uncommon' enchantability_constant: -4 enchantability_modifier: 9 enchantability_max_constant: 18 enchantability_start_level: 1 enchantability_max_level: 5 conflicting_enchantments:

  • 'sharpness'
  • 'smite'
  • 'quick_strike'
        disabled_items: []

        permissions: 
            table: 
                level1: true
                level2: true
                level3: true
                level4: false
                level5: false
                level6: false
            anvil: 
                level1: true
                level2: true
                level3: true
                level4: true
                level5: true
                level6: false

This part of the console means that a player needs the enchantmentsolution.bane_of_arthropods.table.level1 permission for it to show in the table at level 1, the enchantmentsolution.bane_of_arthropods.table.level2 permission for it to show in the table at level 2, the enchantmentsolution.bane_of_arthropods.table.level3 permission for it to show in the table at level 3, and no permission to get Bane of Arthropods above 3. I am assuming you want the opposite, in which case you would want:

bane_of_arthropods: enabled: true treasure: false advanced: weight: 'uncommon' enchantability_constant: -4 enchantability_modifier: 9 enchantability_max_constant: 18 enchantability_start_level: 1 enchantability_max_level: 5 conflicting_enchantments:

  • 'sharpness'
  • 'smite'
  • 'quick_strike'
        disabled_items: []

        permissions: 
            table: 
                level1: false
                level2: false
                level3: false
                level4: true
                level5: true
                level6: true
            anvil: 
                level1: false
                level2: false
                level3: false
                level4: false
                level5: false
                level6: true
star-kissed commented 4 years ago

Do I have to give those permissions manually for each level and enchantment?

crashtheparty commented 4 years ago

If you have the value in the config set to "true", yes.

star-kissed commented 4 years ago

Isn’t that the only way to limit the levels?

star-kissed commented 4 years ago

fixed, thank you for putting up with this. You've been a lot of help!