mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Ensure stored primary groups are always lowercase'd
This commit is contained in:
parent
b26fc69e73
commit
fb171a57c2
@ -27,7 +27,6 @@ package me.lucko.luckperms.common.primarygroup;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
import lombok.Setter;
|
||||
|
||||
import me.lucko.luckperms.common.model.User;
|
||||
|
||||
@ -39,7 +38,6 @@ public class StoredHolder implements PrimaryGroupHolder {
|
||||
protected final User user;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
private String storedValue = null;
|
||||
|
||||
public StoredHolder(@NonNull User user) {
|
||||
@ -50,4 +48,7 @@ public class StoredHolder implements PrimaryGroupHolder {
|
||||
return storedValue;
|
||||
}
|
||||
|
||||
public void setStoredValue(String storedValue) {
|
||||
this.storedValue = storedValue == null ? null : storedValue.toLowerCase();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user