Rename method

This commit is contained in:
Alexander Meech 2019-08-19 12:58:25 -04:00
parent daf23d4c9e
commit d9e8e9f4ff
2 changed files with 3 additions and 3 deletions

View file

@ -1846,7 +1846,7 @@ public class GeneralMethods {
DBConnection.sql.modifyQuery("UPDATE pk_players SET slot" + slot + " = '" + (abilities[slot - 1] == null ? null : abilities[slot - 1]) + "' WHERE uuid = '" + uuid + "'");
}
public static void saveElementsNew(final BendingPlayer bPlayer, List<Element> e) {
public static void saveElements(final BendingPlayer bPlayer, List<Element> e) {
if (bPlayer == null) {
return;
}

View file

@ -118,7 +118,7 @@ public class AddCommand extends PKCommand<AddCommandConfig> {
}
}
if (added.size() > 0) {
GeneralMethods.saveElementsNew(bPlayer, added);
GeneralMethods.saveElements(bPlayer, added);
if (!(sender instanceof Player) || !((Player) sender).equals(target)) {
GeneralMethods.sendBrandingMessage(sender, ChatColor.YELLOW + this.addedOtherAll.replace("{target}", ChatColor.DARK_AQUA + target.getName() + ChatColor.YELLOW) + elements);
@ -210,7 +210,7 @@ public class AddCommand extends PKCommand<AddCommandConfig> {
if (added.size() == 1) {
GeneralMethods.saveElement(bPlayer, added.get(0));
} else {
GeneralMethods.saveElementsNew(bPlayer, added);
GeneralMethods.saveElements(bPlayer, added);
}
for (Element elem : added) {