forked from clone/WorldGuardWrapper
wrapped Object class for raw values
This commit is contained in:
parent
b553ccba91
commit
6d3fe42fcb
|
@ -40,6 +40,8 @@ public class WorldGuardFlagUtilities {
|
||||||
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
||||||
} else if (type.equals(Vector.class)) {
|
} else if (type.equals(Vector.class)) {
|
||||||
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
||||||
|
} else if (type.equals(Object.class)) {
|
||||||
|
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
|
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,6 +39,8 @@ public class WorldGuardFlagUtilities {
|
||||||
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
||||||
} else if (type.equals(Vector.class)) {
|
} else if (type.equals(Vector.class)) {
|
||||||
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
||||||
|
} else if (type.equals(Object.class)) {
|
||||||
|
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
|
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,6 +38,8 @@ public class WorldGuardFlagUtilities {
|
||||||
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
||||||
} else if (type.equals(Vector.class)) {
|
} else if (type.equals(Vector.class)) {
|
||||||
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
||||||
|
} else if (type.equals(Object.class)) {
|
||||||
|
wrappedFlag = new WrappedPrimitiveFlag(flag);
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
|
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user