Execute commands when clicked for expire messages

This commit is contained in:
MattBDev 2020-05-01 13:34:43 -04:00
parent acba10ac09
commit fd4a9a16de

View File

@ -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);
});