Filled OPEnchant

Discussion in 'Plugin Requests' started by Croofix, Feb 6, 2020.

  1. Offline

    Croofix

    Plugin category: Enchants

    Minecraft version: 1.15.2

    Suggested name: OPEnchant

    What I want: I want enchant plugin where i can give someone item with OP enchant levels eg. sword with fire aspect 50, sharpness 100, unbreaking 20

    Ideas for commands: /dajenchant <Player> <Item> <Enchant + Any level, Enchant + Any Level...>
    Ideas for permissions: openchant.use

    When I'd like it by: As soon as time allows
     
    Last edited: Feb 6, 2020
  2. Offline

    InstanceofDeath

  3. Offline

    Croofix

    I want plugin where i can give enchantment item from console. in this plugin i can enchant item in hand
     
    Last edited: Feb 7, 2020
  4. Offline

    pietermantel

    Croofix likes this.
  5. Offline

    Croofix

    I need plugin where i can give enchantment item from console. in your plugin i can enchant item in hand. My command:
    /dajenchant {PlayerName} [item] [Enchant + Level, Enchant+Level...]
    dajenchant = giveenchant
     
    Last edited: Feb 7, 2020
  6. Offline

    pietermantel

    How would you define "[item]"? A slot number?
     
    Croofix likes this.
  7. Offline

    Croofix

    /dajenchant Croofix diamond_sword sharpness 10, unbreaking 20, fire aspect 33
    item = every tool or part of the armor in minecraft
     
  8. Offline

    InstanceofDeath

    Will start programming when I am home.
     
    Croofix likes this.
  9. Offline

    Croofix

    Thanks a lot
     
  10. Offline

    InstanceofDeath

    I coded your plugin. I had to switch some things up to make it easier for me :) hope you don't mind

    Command: /dajenchant <online player> <item*> <enchant1:level1,enchant2:level2,enchant3:level3>+

    Even though I added thourough syntax check for this command, you should know which values are allowed:

    * items from this enum-list in any case are allowed :
    https://jd.bukkit.org/org/bukkit/Material.html
    + no spacebars are allowed and it HAS to be in this exact shape with the commas and colons.

    enchant has to come from this list written in the exact way but with "case-freedom"
    https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html [sry tim, didn't find the updated bukkit version, replaceable] and the level obviously has to be a natural number

    Permission: OpEnchant.use

    Download: https://www.dropbox.com/s/0at64tqkvnwsjjn/OpEnchant.jar?dl=0

    For bugs, please message me in this thread. Ty, have a good day
     
    Croofix likes this.
  11. Offline

    Croofix

    I added this plugin to my plugins folder, but after entering the command /pl i don't see OpEnchant. I used /dajenchant Croofix diamond_swrod fire_aspect:10 and nothing happenned. I see only: Unknown command type "/help" for help
     
  12. Offline

    InstanceofDeath

    Well it worked for me. Was there no error message in the console after you reloaded? If not we probably have different java versions. (I used java SE 1.8 to develop this plugin, on what Java version does your server run on (don’t confuse this with the minecraft version. My sever had craftbukkit 15.2 installed, when I tested it
     
    Croofix likes this.
  13. Offline

    Croofix

  14. Offline

    InstanceofDeath

    Last edited: Feb 8, 2020
    Croofix likes this.
  15. Offline

    Croofix

    It's still not working
     
  16. Offline

    InstanceofDeath

    idk then
     
    Croofix likes this.
  17. Offline

    Croofix

    Or maybe to make a plugin where, after entering the command /giveOpPick {PlayerName} 10/11, the player will receive a diamond pickaxe: effieciency 10 unbreaking 11. I just want the players to get an only enchanted pickaxes
     
  18. Offline

    wand555

    @InstanceofDeath Put "api-version: 1.13" into your plugin.yml. I assume you're using some sort of legacy material and I think you need that then.
     
    Croofix likes this.
  19. Online

    timtower Moderator Moderator

    Change the package to something unique for you and for this plugin. (and do that for all plugins you make)
    The main class is core.Core
    That will be used more often that just this plugin.
     
  20. Offline

    InstanceofDeath

  21. Offline

    Croofix

    It's working. Thank you so much <3
     

Share This Page