Added BadIPDetection

This commit is contained in:
bluefireoly
2020-10-19 17:51:21 +02:00
parent 51fa10eb53
commit fd505cd902
20 changed files with 311 additions and 69 deletions

View File

@@ -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
}
}