Skip to content

Commit a984859

Browse files
Add < Delete > to abandoned lister
1 parent 9d17150 commit a984859

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/me/eccentric_nz/TARDIS/messaging/AdventureComponents.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ public static TextComponent getAbandoned(int i, String owner, String location, i
6565
.color(NamedTextColor.GREEN)
6666
.hoverEvent(HoverEvent.showText(Component.text("Click to enter this TARDIS")))
6767
.clickEvent(ClickEvent.runCommand("/tardisadmin enter " + id))
68+
)
69+
.append(Component.text(" < Delete > ")
70+
.color(NamedTextColor.RED)
71+
.hoverEvent(HoverEvent.showText(Component.text("Click to delete this TARDIS")))
72+
.clickEvent(ClickEvent.runCommand("/tardisadmin delete " + id + " abandoned"))
6873
);
6974
}
7075

0 commit comments

Comments
 (0)