Potion Attack V2

Discussion in 'Plugin Requests' started by Aphyio, May 19, 2021.

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

    Aphyio

  2. Offline

    davidclue

    I have made your requested plugin and attached it below.

    DOCUMENTATION:
    -Use (/ia <add|remove> <effect> <level> <time>) to enchant items with different potion effects
    -Will work with bows, snowballs, and tridents too
    -Should in theory work for 1.13 - 1.16 (Only tested in 1.16 and 1.15)
    -Completely customizable formatting with color codes for the lore of effects in the config
    -You can toggle the potion effect particles in the config under 'hide_particles'
    -If you change the formatting in the config all old enchanted items with the old formatting lore will no longer work
    -If you enchant an item with a potion effect that is already on the item it will just be overwritten with the new one
     

    Attached Files:

    Last edited: May 29, 2021
  3. Offline

    Aphyio

    It doesn't work on my server for 1.16.4 and I'm using Java 8.
     
  4. Offline

    davidclue

    @Aphyio I updated the link above it is compiled in Java 8. Also, make sure you are extracting it and taking the jar file out.
     
    Last edited: May 21, 2021
  5. Offline

    davidclue

  6. Offline

    Aphyio

    Not sure, my server is full with players on and I cant restart but Ill try later at night
     
  7. Offline

    Aphyio

    I checked and it still doesn't work, I unzipped, placed on my plugin folder and restarted my server but nothing worked
     
  8. Offline

    davidclue

    @Aphyio I don't see why it wouldn't work what error message are you getting? It's compiled in java 8 so there should be no problem.
     
  9. Offline

    Aphyio

    I will send a full list of the logs on my server.

    https://paste.revivenode.com/cahicabefo

    Code:
    [2K[21:57:06] [Server thread/ERROR]: Could not load 'plugins/PotionAttack-V1.0 3.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:160) ~[server.jar:git-Spigot-ff439d1-ff2b944]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:144) ~[server.jar:git-Spigot-ff439d1-ff2b944]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:383) ~[server.jar:git-Spigot-ff439d1-ff2b944]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:185) ~[server.jar:git-Spigot-ff439d1-ff2b944]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:809) ~[server.jar:git-Spigot-ff439d1-ff2b944]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[server.jar:git-Spigot-ff439d1-ff2b944]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
        ... 7 more
    It seems you frogot to add plugin.yml
     
    Last edited: May 28, 2021
  10. Offline

    Aphyio

    @davidclue

    I need this plugin 2 days from now, no pressure lol.
     
  11. Offline

    davidclue

    @Aphyio It does have a yml I think its because you have name conflicting plugins hence the name "PotionAttack-V1.0 3.jar" I have updated the link at the top with a changed name and extra feature so it should work.
     
  12. Offline

    Aphyio

    Code:
    [13:16:32] [Server thread/WARN]: Legacy plugin ItemAttributes v1.0 does not specify an api-version.
    Still doesn't work.
     
  13. Offline

    davidclue

    @Aphyio Yes, I removed the api-version because the plugin was compatible with 1.13+ this has no effect. That is not an error that is just a warning the plugin still works just fine try the command (/ia)
     
  14. Offline

    Aphyio

    Thank you it now finally works :)

    Edit:
    I just found a bug, while holding a netherite sword it says you need to hold them in the main hand

    @davidclue
     
    Last edited: May 30, 2021
  15. Offline

    davidclue

    @Aphyio I updated the link at the top with a new one that has the api-version specified to 1.16, the problem now is for some reason when you specify the api-version it will only work in that version so you can only use the plugin in 1.16 now. With the new one the bug is fixed.
     
  16. Offline

    Aphyio

    YEa the plugin broke because im using 1.16.4 server and i dont know why it broke

    @davidclue
     
  17. Offline

    davidclue

    @Aphyio Define broke, any errors? I just tested it in 1.16.4 and had zero issues.
     
  18. Offline

    Aphyio

    do you have any discord we can take it from there
    ill edit this for a warning

    Edit:
    Oh nvm i just put the file as a zip file not the jar file.
     
    davidclue likes this.
Thread Status:
Not open for further replies.

Share This Page