Skip to content

Potion kick(ban) #33

@HowardZHY

Description

@HowardZHY

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions