I want to have a plugin like this but it no longer works and I want to apply using a bow too. https://bukkit.org/threads/potion-attack.489416/
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
@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.
I checked and it still doesn't work, I unzipped, placed on my plugin folder and restarted my server but nothing worked
@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.
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
@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.
Code: [13:16:32] [Server thread/WARN]: Legacy plugin ItemAttributes v1.0 does not specify an api-version. Still doesn't work.
@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)
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
@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.
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.