From 8f48b83c79aa7d795f9a3127b6603dfeb29c2ca5 Mon Sep 17 00:00:00 2001 From: SirYwell Date: Thu, 24 Jun 2021 19:14:59 +0200 Subject: [PATCH] Replace the proper string in expressions --- Core/src/main/java/com/plotsquared/core/plot/PlotArea.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java b/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java index 48716c129..d0b5b3c89 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java @@ -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"));