Remove Case dependance, auto-update name on join into database (care
forums users!)
This commit is contained in:
@@ -35,8 +35,8 @@ public class PlayersLogs extends CustomConfiguration {
|
||||
|
||||
public void addPlayer(String user) {
|
||||
players = this.getStringList("players");
|
||||
if (!players.contains(user.toLowerCase())) {
|
||||
players.add(user.toLowerCase());
|
||||
if (!players.contains(user)) {
|
||||
players.add(user);
|
||||
set("players", players);
|
||||
save();
|
||||
}
|
||||
@@ -44,8 +44,8 @@ public class PlayersLogs extends CustomConfiguration {
|
||||
|
||||
public void removePlayer(String user) {
|
||||
players = this.getStringList("players");
|
||||
if (players.contains(user.toLowerCase())) {
|
||||
players.remove(user.toLowerCase());
|
||||
if (players.contains(user)) {
|
||||
players.remove(user);
|
||||
set("players", players);
|
||||
save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user