Fixed PersistentDataKeyType.BIG_DECIMAL

This commit is contained in:
Auxilor
2023-05-17 17:26:48 +01:00
parent 7edc00d459
commit 1a6ac29083

View File

@@ -44,6 +44,9 @@ object KeyRegistry {
PersistentDataKeyType.CONFIG -> if (default !is Config) {
throw IllegalArgumentException("Invalid Data Type! Should be Config")
}
PersistentDataKeyType.BIG_DECIMAL -> if (default !is BigDecimal) {
throw IllegalArgumentException("Invalid Data Type! Should be Config")
}
else -> throw NullPointerException("Null value found!")
}