From 6ff214253880855fdb413b57cea40db5d7f27dc2 Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Tue, 27 Oct 2020 17:59:25 +0000 Subject: [PATCH] Add ASN field to players table Ban evaders will often use the accounts of whitelisted users. This will allow me to lock specific users into their ASN to prevent ban evaders from connecting via VPNs or other residential connections (unless they're from the same ISP). --- src/main/java/party/_2a03/mc/util/Database.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/party/_2a03/mc/util/Database.java b/src/main/java/party/_2a03/mc/util/Database.java index 98c027e..5a9989b 100644 --- a/src/main/java/party/_2a03/mc/util/Database.java +++ b/src/main/java/party/_2a03/mc/util/Database.java @@ -34,6 +34,7 @@ public class Database { "CREATE TABLE IF NOT EXISTS players (" + "uuid TEXT NOT NULL UNIQUE," + "home TEXT," + + "asn INTEGER," + "PRIMARY KEY(uuid)" + ");"); stmt.executeUpdate(