Skript

Skript

743k Downloads

IllegalArgumentException when attempting to spawn an interface (Spellcaster, Mob, Entity)

sovdeeth opened this issue ยท 0 comments

commented

Skript/Server Version

[16:31:55 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[16:31:55 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[16:31:55 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[16:31:55 INFO]: [Skript] Server Version: git-Paper-390 (MC: 1.20.4)
[16:31:55 INFO]: [Skript] Skript Version: 2.8.2 (skriptlang-github)
[16:31:55 INFO]: [Skript] Installed Skript Addons: None
[16:31:55 INFO]: [Skript] Installed dependencies: None

Bug Description

When attempting to spawn a mob or entity or spellcaster or other interface of entities, Skript throws an exception in console.

Expected Behavior

A random implementation of the interface should be spawned, or skript should silently fail.

Steps to Reproduce

!spawn mob at me

!spawn entity at me

!spawn spellcaster at me

many more, including raider, creature, living entity, and player

Errors or Screenshots

[16:30:21 ERROR]: #!#!
[16:30:21 ERROR]: #!#! [Skript] Severe Error:
[16:30:21 ERROR]: #!#!
[16:30:21 ERROR]: #!#! Something went horribly wrong with Skript.
[16:30:21 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[16:30:21 ERROR]: #!#! You should report it at https://github.com/SkriptLang/Skript/issues. Please copy paste this report there (or use paste service).
[16:30:21 ERROR]: #!#! This ensures that your issue is noticed and will be fixed as soon as possible.
[16:30:21 ERROR]: #!#!
[16:30:21 ERROR]: #!#! Stack trace:
[16:30:21 ERROR]: #!#! java.lang.IllegalArgumentException: Cannot spawn an entity for org.bukkit.entity.Mob
[16:30:21 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R3.CraftRegionAccessor.createEntity(CraftRegionAccessor.java:493)
[16:30:21 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R3.CraftRegionAccessor.spawn(CraftRegionAccessor.java:411)
[16:30:21 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R3.CraftRegionAccessor.spawn(CraftRegionAccessor.java:407)
[16:30:21 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R3.CraftRegionAccessor.spawn(CraftRegionAccessor.java:393)
[16:30:21 ERROR]: #!#!     at Skript_2.8.2.jar//ch.njol.skript.entity.EntityData.spawn(EntityData.java:509)
[16:30:21 ERROR]: #!#!     at Skript_2.8.2.jar//ch.njol.skript.entity.EntityData.spawn(EntityData.java:474)
[16:30:21 ERROR]: #!#!     at Skript_2.8.2.jar//ch.njol.skript.sections.EffSecSpawn.walk(EffSecSpawn.java:171)
[16:30:21 ERROR]: #!#!     at Skript_2.8.2.jar//ch.njol.skript.lang.EffectSectionEffect.walk(EffectSectionEffect.java:47)
[16:30:21 ERROR]: #!#!     at Skript_2.8.2.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[16:30:21 ERROR]: #!#!     at Skript_2.8.2.jar//ch.njol.skript.command.Commands.handleEffectCommand(Commands.java:201)
[16:30:21 ERROR]: #!#!     at Skript_2.8.2.jar//ch.njol.skript.command.Commands$2.lambda$onPlayerChat$0(Commands.java:300)
[16:30:21 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftFuture.run(CraftFuture.java:88)
[16:30:21 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480)
[16:30:21 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1633)
[16:30:21 ERROR]: #!#!     at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446)
[16:30:21 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1512)
[16:30:21 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1214)
[16:30:21 ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321)
[16:30:21 ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:833)
[16:30:21 ERROR]: #!#!
[16:30:21 ERROR]: #!#! Version Information:
[16:30:21 ERROR]: #!#!   Skript: 2.8.2 (latest)
[16:30:21 ERROR]: #!#!     Flavor: skriptlang-github
[16:30:21 ERROR]: #!#!     Date: 12:36:18.989662200
[16:30:21 ERROR]: #!#!   Bukkit: 1.20.4-R0.1-SNAPSHOT
[16:30:21 ERROR]: #!#!   Minecraft: 1.20.4
[16:30:21 ERROR]: #!#!   Java: 17.0.2 (OpenJDK 64-Bit Server VM 17.0.2+8)
[16:30:21 ERROR]: #!#!   OS: Windows 11 amd64 10.0
[16:30:21 ERROR]: #!#!
[16:30:21 ERROR]: #!#! Server platform: Paper
[16:30:21 ERROR]: #!#!
[16:30:21 ERROR]: #!#! Current node: null
[16:30:21 ERROR]: #!#! Current item: spawn [[entitytype:mob]] at (me >> ch.njol.skript.classes.data.DefaultConverters$$Lambda$7294/0x0000000801b32570@65df5547: ConverterInfo{from=interface org.bukkit.entity.Entity,to=class org.bukkit.Location,converter=ch.njol.skript.classes.data.DefaultConverters$$Lambda$7294/0x0000000801b32570@65df5547,flags=4})
[16:30:21 ERROR]: #!#!
[16:30:21 ERROR]: #!#! Thread: Server thread
[16:30:21 ERROR]: #!#!
[16:30:21 ERROR]: #!#! Language: english
[16:30:21 ERROR]: #!#! Link parse mode: DISABLED
[16:30:21 ERROR]: #!#!
[16:30:21 ERROR]: #!#! End of Error.
[16:30:21 ERROR]: #!#!

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.