CommandHelper

CommandHelper

46.5k Downloads

Core error in entity_id() when given invalid UUID

LadyCailinBot opened this issue ยท 1 comments

commented

CMDHELPER-3089 - Reported by PseudoKnight

Posted by bist3ca in the forums:

[14:53:32 ERROR]: Uh oh! You've found an error in Core.
This is an error caused while running your code, so you may be able to find a wo
rkaround, but is ultimately an error in Core itself.
The line of code that caused the error was this:
@player = 'Luigi'
entity_id(@player)
on or around D:\Servidor_18\plugins\CommandHelper\LocalPackages\VIP Itens\Evento
s.ms:8.
Please report this error to the developers, and be sure to include the version n
umbers:
Server version: 1.8-R0.1-SNAPSHOT;
CommandHelper version: 3.3.1-SNAPSHOT.2910-;
Loaded extensions and versions:
Core (version 3.3.1);
CHVirtualChests (version 1.0.2);
SKCompat (version 1.1.8);
Here's the stacktrace:
java.lang.IllegalArgumentException: Invalid UUID string: Luigi
at java.util.UUID.fromString(Unknown Source)
at com.laytonsmith.core.functions.EntityManagement$entity_id.exec(Entity
Management.java:2252)
at com.laytonsmith.core.Script.eval(Script.java:354)
at com.laytonsmith.core.Script.eval(Script.java:323)
at com.laytonsmith.core.Script.eval(Script.java:323)
at com.laytonsmith.core.Script.eval(Script.java:323)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompile
r.java:1910)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompile
r.java:1867)
at com.laytonsmith.core.events.AbstractEvent.execute(AbstractEvent.java:
99)
at com.laytonsmith.core.events.BoundEvent.execute(BoundEvent.java:320)
at com.laytonsmith.core.events.BoundEvent.trigger(BoundEvent.java:278)
at com.laytonsmith.core.events.EventUtils.FireListeners(EventUtils.java:
254)
at com.laytonsmith.core.events.EventUtils.TriggerListener(EventUtils.jav
a:241)
at com.laytonsmith.abstraction.bukkit.events.drivers.BukkitEntityListene
r.onEntityDamage(BukkitEntityListener.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.laytonsmith.commandhelper.CommandHelperPlugin$8.execute(CommandHe
lperPlugin.java:500)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
a:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
ava:502)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
ava:487)
at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callEvent(Craf
tEventFactory.java:85)
at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callEntityDama
geEvent(CraftEventFactory.java:538)
at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.handleEntityDa
mageEvent(CraftEventFactory.java:451)
at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.handleLivingEn
tityDamageEvent(CraftEventFactory.java:570)
at net.minecraft.server.v1_8_R1.EntityLiving.d(EntityLiving.java:1096)
at net.minecraft.server.v1_8_R1.EntityHuman.d(EntityHuman.java:860)
at net.minecraft.server.v1_8_R1.EntityLiving.damageEntity(EntityLiving.j
ava:737)
at net.minecraft.server.v1_8_R1.EntityHuman.damageEntity(EntityHuman.jav
a:801)
at net.minecraft.server.v1_8_R1.EntityPlayer.damageEntity(EntityPlayer.j
ava:486)
at net.minecraft.server.v1_8_R1.EntityHuman.attack(EntityHuman.java:1002
)
at net.minecraft.server.v1_8_R1.EntityPlayer.attack(EntityPlayer.java:10
51)
at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java
:1312)
at net.minecraft.server.v1_8_R1.PacketPlayInUseEntity.a(SourceFile:52)
at net.minecraft.server.v1_8_R1.PacketPlayInUseEntity.a(SourceFile:11)
at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:6
96)
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:3
16)
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:6
34)
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java
:537)
at java.lang.Thread.run(Unknown Source)
commented

Comment by jb_aero

Ah perfect timing