fix bugs
- remove debug message - make placeholder %rankup_rank_money_<RANK>% use proper money formatting
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group 'sh.okx'
|
group 'sh.okx'
|
||||||
version '3.0-alpha.15'
|
version '3.0-alpha.16'
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class Placeholders extends PlaceholderExpansion {
|
|||||||
return simpleFormat.format(orElse(rankups.getRank(parts[2]).getRequirement(parts[3]), Requirement::getValueDouble, 0));
|
return simpleFormat.format(orElse(rankups.getRank(parts[2]).getRequirement(parts[3]), Requirement::getValueDouble, 0));
|
||||||
} else if(params.startsWith("rank_money_")) {
|
} else if(params.startsWith("rank_money_")) {
|
||||||
String[] parts = params.split("_", 3);
|
String[] parts = params.split("_", 3);
|
||||||
return moneyFormat.format(rankups.getRank(parts[2]).getRequirement("money").getValueDouble());
|
return plugin.formatMoney(rankups.getRank(parts[2]).getRequirement("money").getValueDouble());
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (params) {
|
switch (params) {
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ public class Rankups {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Rank getRank(String name) {
|
public Rank getRank(String name) {
|
||||||
System.out.println(name);
|
|
||||||
for(Rank rank : ranks) {
|
for(Rank rank : ranks) {
|
||||||
if(rank.getName().equalsIgnoreCase(name)) {
|
if(rank.getName().equalsIgnoreCase(name)) {
|
||||||
return rank;
|
return rank;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: Rankup
|
name: Rankup
|
||||||
version: 3.0-alpha.15
|
version: 3.0-alpha.16
|
||||||
main: sh.okx.rankup.Rankup
|
main: sh.okx.rankup.Rankup
|
||||||
author: Okx
|
author: Okx
|
||||||
depend: [Vault]
|
depend: [Vault]
|
||||||
|
|||||||
Reference in New Issue
Block a user