Skip to content

Commit f6e3722

Browse files
authored
Merge pull request #59 from myth-MC/dev/1.0
1.0.3
2 parents 1369219 + 6e153b6 commit f6e3722

File tree

8 files changed

+22
-21
lines changed

8 files changed

+22
-21
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.2
1+
1.0.3

api/pom.xml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>ovh.mythmc</groupId>
88
<artifactId>banco</artifactId>
9-
<version>1.0.2</version>
9+
<version>1.0.3</version>
1010
</parent>
1111

1212
<artifactId>banco-api</artifactId>
@@ -28,13 +28,11 @@
2828
<url>https://repo.xenondevs.xyz/releases</url>
2929
</repository>
3030

31-
<!--
3231
<repository>
3332
<id>nexus</id>
3433
<name>Lumine Releases</name>
3534
<url>https://mvn.lumine.io/repository/maven-public/</url>
36-
</repository
37-
-->
35+
</repository>
3836

3937
<repository>
4038
<id>nexo</id>
@@ -66,15 +64,13 @@
6664
<scope>provided</scope>
6765
</dependency>
6866

69-
<!-- MythicMobs API -->
70-
<!--
67+
<!-- MythicMobs API -->
7168
<dependency>
7269
<groupId>io.lumine</groupId>
7370
<artifactId>Mythic-Dist</artifactId>
74-
<version>5.6.1</version>
71+
<version>5.8.2</version>
7572
<scope>provided</scope>
7673
</dependency>
77-
-->
7874

7975
<!-- Oraxen API -->
8076
<dependency>

api/src/main/java/ovh/mythmc/banco/api/accounts/AccountDatabase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public Account getByName(@NotNull String name) {
192192
try {
193193
List<Account> accounts = accountsDao.queryBuilder()
194194
.where()
195-
.eq("name", name)
195+
.like("name", name)
196196
.query();
197197

198198
if (accounts != null && !accounts.isEmpty()) {
@@ -216,7 +216,7 @@ public Account getByNameOrUuid(@NotNull String name, UUID uuid) {
216216
try {
217217
List<Account> accounts = accountsDao.queryBuilder()
218218
.where()
219-
.eq("name", name)
219+
.like("name", name)
220220
.query();
221221

222222
if (accounts != null && !accounts.isEmpty()) {
@@ -243,7 +243,7 @@ private Account findCachedAccountByUuid(@NotNull UUID uuid) {
243243
private Account findCachedAccountByName(@NotNull String name) {
244244
return cache.entrySet().stream()
245245
.filter(entry -> entry.getKey().name() != null)
246-
.filter(entry -> entry.getKey().name().equals(name))
246+
.filter(entry -> entry.getKey().name().equalsIgnoreCase(name))
247247
.map(entry -> entry.getValue())
248248
.findFirst().orElse(null);
249249
}

api/src/main/java/ovh/mythmc/banco/api/items/impl/MythicMobsBancoItem.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44

55
import org.bukkit.inventory.ItemStack;
66

7-
//import io.lumine.mythic.bukkit.MythicBukkit;
7+
import io.lumine.mythic.bukkit.MythicBukkit;
88
import ovh.mythmc.banco.api.items.BancoItem;
99

10-
public record MythicMobsBancoItem(String identifier, BigDecimal value) {//implements BancoItem {
10+
public record MythicMobsBancoItem(String identifier, BigDecimal value) implements BancoItem {
1111

12-
//@Override
12+
@Override
1313
public ItemStack asItemStack(int amount) {
14-
return null;
15-
//return MythicBukkit.inst().getItemManager().getItemStack(identifier, amount);
14+
return MythicBukkit.inst().getItemManager().getItemStack(identifier, amount);
1615
}
1716

1817
}

platform-bukkit/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>ovh.mythmc</groupId>
88
<artifactId>banco</artifactId>
9-
<version>1.0.2</version>
9+
<version>1.0.3</version>
1010
</parent>
1111

1212
<artifactId>banco-platform-bukkit</artifactId>

platform-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>ovh.mythmc</groupId>
88
<artifactId>banco</artifactId>
9-
<version>1.0.2</version>
9+
<version>1.0.3</version>
1010
</parent>
1111

1212
<artifactId>banco-common</artifactId>

platform-paper/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>ovh.mythmc</groupId>
88
<artifactId>banco</artifactId>
9-
<version>1.0.2</version>
9+
<version>1.0.3</version>
1010
</parent>
1111

1212
<artifactId>banco-platform-paper</artifactId>

pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>ovh.mythmc</groupId>
88
<artifactId>banco</artifactId>
9-
<version>1.0.2</version>
9+
<version>1.0.3</version>
1010
<packaging>pom</packaging>
1111

1212
<modules>
@@ -166,6 +166,12 @@
166166
<artifactId>VaultAPI</artifactId>
167167
<version>1.7</version>
168168
<scope>provided</scope>
169+
<exclusions>
170+
<exclusion>
171+
<groupId>org.bukkit</groupId>
172+
<artifactId>bukkit</artifactId>
173+
</exclusion>
174+
</exclusions>
169175
</dependency>
170176

171177
<dependency>

0 commit comments

Comments
 (0)