mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 20:56:45 +01:00
Replace the proper string in expressions
This commit is contained in:
parent
6a57a5c369
commit
8f48b83c79
@ -348,8 +348,8 @@ public abstract class PlotArea {
|
||||
this.prices = new HashMap<>();
|
||||
for (String key : priceSection.getKeys(false)) {
|
||||
String raw = priceSection.getString(key);
|
||||
if (raw.contains("{args}")) {
|
||||
raw = raw.replace("{args}", "plots");
|
||||
if (raw.contains("{arg}")) {
|
||||
raw = raw.replace("{arg}", "plots");
|
||||
priceSection.set(key, raw); // update if replaced
|
||||
}
|
||||
this.prices.put(key, PlotExpression.compile(raw, "plots"));
|
||||
|
Loading…
Reference in New Issue
Block a user