Skip to content

Commit a9aa07b

Browse files
authored
Merge pull request #104 from HSGamer/master
wrapped Object class for raw values
2 parents 38104d5 + 6d3fe42 commit a9aa07b

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

implementation/legacy/src/main/java/org/codemc/worldguardwrapper/implementation/legacy/utility/WorldGuardFlagUtilities.java

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public <T> IWrappedFlag<T> wrap(Flag<?> flag, Class<T> type) {
4040
wrappedFlag = new WrappedPrimitiveFlag(flag);
4141
} else if (type.equals(Vector.class)) {
4242
wrappedFlag = new WrappedPrimitiveFlag(flag);
43+
} else if (type.equals(Object.class)) {
44+
wrappedFlag = new WrappedPrimitiveFlag(flag);
4345
} else {
4446
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
4547
}

implementation/v6/src/main/java/org/codemc/worldguardwrapper/implementation/v6/utility/WorldGuardFlagUtilities.java

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public <T> IWrappedFlag<T> wrap(Flag<?> flag, Class<T> type) {
3939
wrappedFlag = new WrappedPrimitiveFlag(flag);
4040
} else if (type.equals(Vector.class)) {
4141
wrappedFlag = new WrappedPrimitiveFlag(flag);
42+
} else if (type.equals(Object.class)) {
43+
wrappedFlag = new WrappedPrimitiveFlag(flag);
4244
} else {
4345
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
4446
}

implementation/v7/src/main/java/org/codemc/worldguardwrapper/implementation/v7/utility/WorldGuardFlagUtilities.java

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public <T> IWrappedFlag<T> wrap(Flag<?> flag, Class<T> type) {
3838
wrappedFlag = new WrappedPrimitiveFlag(flag);
3939
} else if (type.equals(Vector.class)) {
4040
wrappedFlag = new WrappedPrimitiveFlag(flag);
41+
} else if (type.equals(Object.class)) {
42+
wrappedFlag = new WrappedPrimitiveFlag(flag);
4143
} else {
4244
throw new IllegalArgumentException("Unsupported flag type " + type.getName());
4345
}

0 commit comments

Comments
 (0)