Back to Type Bindings ShareDescription Parses any numeric literal (int, long, or double) from a single token or a variable reference. Automatically detects the appropriate numeric type based on the token content.
Examples set %var:EXPR% to %val:NUMBER%Other Type Bindings LOCATIONResolves a location reference from a variable name. VILLAGER_TYPEResolves a single token to a org.bukkit.entity.Villager$Type enum constant. PLAYER_POSSESSIVEResolves a player reference from a possessive token (e.g. player's). The token m... AXOLOTL_VARIANTResolves a single token to a org.bukkit.entity.Axolotl$Variant enum constant. INTParses an integer number from a single token or a variable reference, supporting... ENTITYResolves an entity reference from a variable name. Does not accept possessive sy... GAME_MODEResolves a single token to a org.bukkit.GameMode enum constant. EXPRCaptures all remaining tokens as a raw expression. Preserves string literal quot...