1. upgrade bukkit chat 2. fix config update error Signed-off-by: MiaoWoo <admin@yumc.pw>
26 lines
348 B
TypeScript
26 lines
348 B
TypeScript
import { Expression } from '../expression'
|
|
|
|
export class NumberExpression extends Expression {
|
|
type = 'NumberExpression'
|
|
|
|
constructor(protected value: number) {
|
|
super()
|
|
}
|
|
|
|
get allExpressions() {
|
|
return []
|
|
}
|
|
setExpressionAt() {}
|
|
|
|
isStatic() {
|
|
return true
|
|
}
|
|
|
|
eval() {
|
|
return this.value
|
|
}
|
|
toString() {
|
|
return '' + this.value
|
|
}
|
|
}
|