Compare commits

...
4 Commits
Author SHA1 Message Date
Minat0_ 35065bfa78 fix(economy): withdraw fall-through causing incorrect message (#479) 2026-07-29 18:04:40 +03:00
Edson Passos 32f9b35d87 build: updated XSeries
Closes #477
2026-05-16 19:59:52 -03:00
Edson Passos a1145f2568 build: updated XSeries 2026-05-14 19:01:58 -03:00
Edson Passos 0406c61b0f fix: kills table prefix
closes #470
2026-01-08 23:33:54 -03:00
3 changed files with 7 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -230,7 +230,7 @@
<dependency>
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>11.2.0.1</version>
<version>13.8.0</version>
</dependency>
<dependency>
<groupId>com.sk89q</groupId>
@@ -79,8 +79,12 @@ public class BankCommand extends BaseCommand {
} else {
clan.setBalance(operator, REVERT, BankLogger.Operation.WITHDRAW, clan.getBalance() + amount);
}
break;
case NOT_ENOUGH_BALANCE:
player.sendMessage(lang("clan.bank.not.enough.money", player));
break;
default:
break;
}
}
@@ -930,7 +930,7 @@ public final class StorageManager {
* @param type the kill type
*/
public void insertKill(@NotNull ClanPlayer attacker, @NotNull ClanPlayer victim, @NotNull String type, @NotNull LocalDateTime time) {
String query = "INSERT INTO `sc_kills` ( `attacker_uuid`, `attacker`, `attacker_tag`, `victim_uuid`, " +
String query = "INSERT INTO `" + getPrefixedTable("kills") + "` ( `attacker_uuid`, `attacker`, `attacker_tag`, `victim_uuid`, " +
"`victim`, `victim_tag`, `kill_type`, `created_at`) ";
String values = "VALUES ( '" + attacker.getUniqueId() + "','" + attacker.getName() + "','" + attacker.getTag()
+ "','" + victim.getUniqueId() + "','" + victim.getName() + "','" + victim.getTag() + "','" + type + "','" + time + "');";
@@ -1175,7 +1175,7 @@ public final class StorageManager {
// From 2.19.3 to 2.20.0
if (!core.existsColumn(getPrefixedTable("kills"), "created_at")) {
query = "ALTER TABLE sc_kills ADD `created_at` datetime NULL;";
query = "ALTER TABLE `" + getPrefixedTable("kills") + "` ADD `created_at` datetime NULL;";
core.execute(query);
}
}