From fd4a9a16de5a5924cac703ff4e940745272c0a6d Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Fri, 1 May 2020 13:34:43 -0400 Subject: [PATCH] Execute commands when clicked for expire messages --- .../core/plot/expiration/ExpireManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/plot/expiration/ExpireManager.java b/Core/src/main/java/com/plotsquared/core/plot/expiration/ExpireManager.java index 84f4139ff..6b5f2bbae 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/expiration/ExpireManager.java +++ b/Core/src/main/java/com/plotsquared/core/plot/expiration/ExpireManager.java @@ -149,17 +149,17 @@ public class ExpireManager { PlotMessage msg = new PlotMessage() .text(num + " " + (num > 1 ? "plots are" : "plot is") + " expired: ") .color("$1").text(current.toString()).color("$2") - .suggest("/plot list expired").tooltip("/plot list expired") + .command("/plot list expired").tooltip("/plot list expired") //.text("\n - ").color("$3").text("Delete all (/plot delete expired)").color("$2").command("/plot delete expired") .text("\n - ").color("$3").text("Delete this (/plot delete)") - .color("$2").suggest("/plot delete").tooltip("/plot delete") + .color("$2").command("/plot delete").tooltip("/plot delete") .text("\n - ").color("$3").text("Remind later (/plot set keep 1d)") - .color("$2").suggest("/plot set keep 1d").tooltip("/plot set keep 1d") + .color("$2").command("/plot set keep 1d").tooltip("/plot set keep 1d") .text("\n - ").color("$3").text("Keep this (/plot set keep true)") - .color("$2").suggest("/plot set keep true") + .color("$2").command("/plot set keep true") .tooltip("/plot set keep true").text("\n - ").color("$3") .text("Don't show me this").color("$2") - .suggest("/plot toggle clear-confirmation") + .command("/plot toggle clear-confirmation") .tooltip("/plot toggle clear-confirmation"); msg.send(pp); });