Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potion kick(ban) #33

Open
HowardZHY opened this issue Aug 4, 2022 · 0 comments
Open

Potion kick(ban) #33

HowardZHY opened this issue Aug 4, 2022 · 0 comments

Comments

@HowardZHY
Copy link
Contributor

Describe the bug
Potion given by command /give minecraft:potion 1 16456 {CustomPotionEffects:[0:{Duration:1000,id:6,Amplifier:-1}]} kicks players everytime they enter server.
java.lang.IllegalArgumentException: effect type cannot be null
at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[BurritoSpigot.jar:git-BurritoSpigot-"700f01e"]
at org.bukkit.potion.PotionEffect.(PotionEffect.java:42) ~[BurritoSpigot.jar:git-BurritoSpigot-"700f01e"]
at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftMetaPotion.(CraftMetaPotion.java:59) ~[BurritoSpigot.jar:git-BurritoSpigot-"700f01e"]
at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftItemStack.getItemMeta(CraftItemStack.java:341) ~[BurritoSpigot.jar:git-BurritoSpigot-"700f01e"]
at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftItemStack.getItemMeta(CraftItemStack.java:321) ~[BurritoSpigot.jar:git-BurritoSpigot-"700f01e"]
at com.shampaggon.crackshot.CSDirector.itemIsSafe(CSDirector.java:4576) ~[?:?]
at com.shampaggon.crackshot.CSDirector.itemParentNode(CSDirector.java:3901) ~[?:?]
at com.shampaggon.crackshot.CSDirector.onGunThrow(CSDirector.java:2948) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_312]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_312]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_312]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_312]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300) ~[BurritoSpigot.jar:git-BurritoSpigot-"700f01e"]
... 24 more
[01:42:47] [Server thread/INFO]: [HowardZHY: Given [Milky Potion] * 1 to HowardZHY]
[01:42:47] [Server thread/INFO]: HowardZHY lost connection: Internal Exception: io.netty.handler.codec.EncoderException: java.lang.IllegalArgumentException: effect type cannot be null

To Reproduce
Steps to reproduce the behavior:
/give @p minecraft:potion 1 16456 {CustomPotionEffects:[0:{Duration:1000,id:6,Amplifier:-1}]}
player got the item and got kicked
Additional context
Add any other context about the problem here.

Is there a plugin that fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant