From 26feeb125e4422e599896131deeef7be6e5894f8 Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 22 Nov 2017 17:17:49 +0000 Subject: [PATCH] Don't allow user names to be set if the length exceeds 16 characters --- common/src/main/java/me/lucko/luckperms/common/model/User.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/main/java/me/lucko/luckperms/common/model/User.java b/common/src/main/java/me/lucko/luckperms/common/model/User.java index cc139cf66..f17a63850 100644 --- a/common/src/main/java/me/lucko/luckperms/common/model/User.java +++ b/common/src/main/java/me/lucko/luckperms/common/model/User.java @@ -117,6 +117,9 @@ public class User extends PermissionHolder implements Identifiable 16) { + return false; // nope + } // if weak is true, only update the value in the User if it's null if (weak && this.name != null) {