mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Rename method
This commit is contained in:
parent
daf23d4c9e
commit
d9e8e9f4ff
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue