package mytown.protection.segment.getter;

public class GetterConstant extends Getter {

    public final Object constant;

    public GetterConstant(Object constant) {
        this.constant = constant;
    }

    @Override
    public Object invoke(Class<?> returnType, Object instance, Object... parameters) {
        return constant;
    }
}

@@ -36,16 +36,69 @@
 etter;%0A%0A
+import com.google.gson.internal.LazilyParsedNumber;%0A%0A
 public c
@@ -353,24 +353,152 @@
 rameters) %7B%0A
+        if (returnType.equals(Integer.class)) %7B%0A            return (Object)((LazilyParsedNumber)constant).intValue();%0A        %7D%0A
         retu

Allow conversion to Integer from constant.