mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-09-01 00:49:34 +02: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.Getter;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import lombok.Setter;
|
|
||||||
|
|
||||||
import me.lucko.luckperms.common.model.User;
|
import me.lucko.luckperms.common.model.User;
|
||||||
|
|
||||||
|
@ -39,7 +38,6 @@ public class StoredHolder implements PrimaryGroupHolder {
|
||||||
protected final User user;
|
protected final User user;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
|
||||||
private String storedValue = null;
|
private String storedValue = null;
|
||||||
|
|
||||||
public StoredHolder(@NonNull User user) {
|
public StoredHolder(@NonNull User user) {
|
||||||
|
@ -50,4 +48,7 @@ public class StoredHolder implements PrimaryGroupHolder {
|
||||||
return storedValue;
|
return storedValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setStoredValue(String storedValue) {
|
||||||
|
this.storedValue = storedValue == null ? null : storedValue.toLowerCase();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user