CommandHelper

CommandHelper

46.5k Downloads

Optimization running in wrong order on switch()

LadyCailinBot opened this issue ยท 3 comments

commented

CMDHELPER-3004 - Reported by VergilPrime

Cases can't be dynamic currently because switch fails before the case argument is handled.

commented

Comment by PseudoKnight

--I'm pretty sure cases can't be dynamic because they're not designed to be dynamic. Or do you mean something else by "dynamic" than variables?-- Wrong type of dynamic. He meant things like colorize().

commented

Comment by PseudoKnight

Since it was after 2783 that this changed, best guess is this did it: eb35476

commented

Comment by PseudoKnight

This now gives a more helpful "Invalid label specified" error as of 2924.