Plugin for enchanting players item in hand via console

Discussion in 'Plugin Requests' started by Amandusjf, Nov 23, 2020.

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

    Amandusjf

    Minecraft version: 1.16.4

    Suggested name: EasyEnchant

    What I want: A plugin to make it possible to enchant a players item in hand via console? and for it to be able to work with enchants over the vanilla max. also make it so that you can put either just the enchant level you want at the end or for example +2 so it adds 2 enchant levels to the enchant already in hand

    Ideas for commands:
    /ea enchant [player] [enchantment] (+) [level]
    examples:
    /ea enchant 66one efficiency +3
    /ea enchant 66one sharpness 1

    Ideas for permissions:
    easy.enchant.enchant.other (enchant other players items)
    easy.enchant.enchant.self (enchant own item)
    those could be combined into one if that is easier^

    When I'd like it by: As soon as possible
     
  2. Online

    Liquided

    Okay, I will start on your plugin but I just need some clarification. What you mean by "Enchant own item" and "Enchant other players items"? If you are in console, the console wont know who you are targeting by "own self". If you mean that this plugin works for both in player AND in console, then that will work. Thanks
     
    Amandusjf likes this.
  3. Offline

    ItZ_JameZ_

    Amandusjf likes this.
  4. Offline

    Amandusjf

    Yes i was thinking that this can work for both players and console

    It seems like this plugin works for both players and console and the permissions work, the only problem is that it dosent work with allready enchanted items.
    (edit) this happened because of my tokenenchant making the lore look good. i fixed this and now its working perfectly! thank you!

    This seems to work well but i cant get it to work with +(enchantment level) on the end of the command. also if i enchant a pickaxe that i placed far left on the hotbar, it moves it far right to the hotbar, so after each enchant it moves it to the far left side slot that is clear in the hotbar
     
    Last edited: Nov 24, 2020
  5. Offline

    gochi9

    This is the plugin

    Commands:
    /cenchant [enchantName] [enchantLevel] - Can be used only by the player to enchant the item in his/her hand - Permission: customenchats.enchantself

    /cenchant [player/@a/@r] [enchantName] [enchantLevel] - Can be used by a player or by the console to enchant the item in hand of a player/every online player/a random player. Permission if used by a player: customenchats.enchantothers

    /cremove [enchantName] - Can be used only by the player to remove an enchant from the item in hand - Permission: customenchats.removeenchantself

    /cremove [player/@a/@r ] [enchantName] - Can be used by a player or by the console to remove the specified enchant from item in hand of player/every online player/a random player. Permission if used by a player: customenchats.removeenchantothers
     
    Amandusjf likes this.
Thread Status:
Not open for further replies.

Share This Page