yuttyann / ScriptBlockPlus

任意のブロックにスクリプトを設定するプラグインです。
https://www.spigotmc.org/resources/scriptblockplus.78413/
GNU General Public License v3.0
33 stars 8 forks source link

Make the "@calc" recognize text #14

Closed Clexus closed 4 years ago

Clexus commented 4 years ago

Otherwise, you can't tell which world the player is in For example[@calc:%player_world% == one You are not in one!]But what I got was NumberFormatException "For input string: "two""

yuttyann commented 4 years ago

"@calc:" is an option that exists to compare numbers. Character strings cannot be assigned.

It is technically possible to digitize and compare the world. I'll consider it.

yuttyann commented 4 years ago

Added the specification to compare strings.

https://github.com/yuttyann/ScriptBlockPlus/commit/219fa0b7962138b19e745c0ea2a542f63f89f11d