diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_saconfig.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_saconfig.java index 7c6ea709..346b80fc 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_saconfig.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_saconfig.java @@ -209,8 +209,10 @@ public class Command_saconfig extends FreedomCommand { String oldName = admin.getName(); if (oldName != player.getName()) - admin.setName(player.getName()); - plugin.sql.updateAdminName(oldName, admin.getName()); + { + admin.setName(player.getName()); + plugin.sql.updateAdminName(oldName, admin.getName()); + } admin.addIp(FUtil.getIp(player)); }