fix bought with -2
All checks were successful
Java CI-CD with Maven / build (push) Successful in 1h44m58s
All checks were successful
Java CI-CD with Maven / build (push) Successful in 1h44m58s
This commit is contained in:
parent
c71266627f
commit
c4a1cdcbaf
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>cn.lunadeer</groupId>
|
<groupId>cn.lunadeer</groupId>
|
||||||
<artifactId>MiniPlayerTitle</artifactId>
|
<artifactId>MiniPlayerTitle</artifactId>
|
||||||
<version>2.3</version>
|
<version>2.4</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>MiniPlayerTitle</name>
|
<name>MiniPlayerTitle</name>
|
||||||
|
@ -181,7 +181,9 @@ public class XPlayer {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
set_coin(_coin - title.getPrice());
|
set_coin(_coin - title.getPrice());
|
||||||
SaleTitle.setAmount(title.getId(), title.getAmount() - 1);
|
if (title.getAmount() > 0) {
|
||||||
|
SaleTitle.setAmount(title.getId(), title.getAmount() - 1);
|
||||||
|
}
|
||||||
Notification.info(_player, Component.text("成功购买称号: ").append(title.getTitle()));
|
Notification.info(_player, Component.text("成功购买称号: ").append(title.getTitle()));
|
||||||
Notification.info(_player, "花费: " + title.getPrice() + "称号币,余额: " + _coin + "称号币");
|
Notification.info(_player, "花费: " + title.getPrice() + "称号币,余额: " + _coin + "称号币");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user