mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-03 10:43:45 +01:00 
			
		
		
		
	Execute commands when clicked for expire messages
This commit is contained in:
		@@ -149,17 +149,17 @@ public class ExpireManager {
 | 
				
			|||||||
                        PlotMessage msg = new PlotMessage()
 | 
					                        PlotMessage msg = new PlotMessage()
 | 
				
			||||||
                            .text(num + " " + (num > 1 ? "plots are" : "plot is") + " expired: ")
 | 
					                            .text(num + " " + (num > 1 ? "plots are" : "plot is") + " expired: ")
 | 
				
			||||||
                            .color("$1").text(current.toString()).color("$2")
 | 
					                            .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 all (/plot delete expired)").color("$2").command("/plot delete expired")
 | 
				
			||||||
                            .text("\n - ").color("$3").text("Delete this (/plot delete)")
 | 
					                            .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)")
 | 
					                            .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)")
 | 
					                            .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")
 | 
					                            .tooltip("/plot set keep true").text("\n - ").color("$3")
 | 
				
			||||||
                            .text("Don't show me this").color("$2")
 | 
					                            .text("Don't show me this").color("$2")
 | 
				
			||||||
                            .suggest("/plot toggle clear-confirmation")
 | 
					                            .command("/plot toggle clear-confirmation")
 | 
				
			||||||
                            .tooltip("/plot toggle clear-confirmation");
 | 
					                            .tooltip("/plot toggle clear-confirmation");
 | 
				
			||||||
                        msg.send(pp);
 | 
					                        msg.send(pp);
 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user