Make VPN kick message broadly applicable.
This commit is contained in:
parent
256d12c1d4
commit
7fb554bd2b
@ -385,12 +385,12 @@ public final class User {
|
|||||||
if (!userType.isAllowed()) {
|
if (!userType.isAllowed()) {
|
||||||
proposedAccess = ImmutableMap.of(
|
proposedAccess = ImmutableMap.of(
|
||||||
"allowed", false,
|
"allowed", false,
|
||||||
"message", "You cannot join MineHQ from a VPN."
|
"message", "You cannot join the server from a VPN."
|
||||||
);
|
);
|
||||||
} else if (BannedAsn.findById(maxMindResult.getTraits().getAsn()) != null) {
|
} else if (BannedAsn.findById(maxMindResult.getTraits().getAsn()) != null) {
|
||||||
proposedAccess = ImmutableMap.of(
|
proposedAccess = ImmutableMap.of(
|
||||||
"allowed", false,
|
"allowed", false,
|
||||||
"message", "You cannot join MineHQ from this ISP."
|
"message", "You cannot join the server from this ISP."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -689,4 +689,4 @@ public final class User {
|
|||||||
usersCollection.replaceOne(new Document("_id", id), this, SyncUtils.vertxWrap(new MongoToVoidMongoCallback<>(callback)));
|
usersCollection.replaceOne(new Document("_id", id), this, SyncUtils.vertxWrap(new MongoToVoidMongoCallback<>(callback)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user