Added BadIPDetection
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package net.axay.kspigot.languageextensions
|
||||
|
||||
import org.json.JSONObject
|
||||
|
||||
internal fun JSONObject.getStringOrNull(key: String): String? {
|
||||
return try {
|
||||
this[key].toString()
|
||||
} catch (exc: Exception) {
|
||||
null
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user