Skip to content

Commit 76c1540

Browse files
committed
register helpchat paster to PasteProvider
1 parent 112b47f commit 76c1540

File tree

1 file changed

+10
-1
lines changed
  • src/main/java/org/maxgamer/quickshop/util/paste

1 file changed

+10
-1
lines changed

src/main/java/org/maxgamer/quickshop/util/paste/Paste.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,14 @@ public String paste(@NotNull String content, PasteType type) {
525525
} catch (Exception ignore) {
526526
}
527527
break;
528+
case HELPCHAT:
529+
try {
530+
// Ubuntu Pastebin
531+
paster = new HelpChatPastebinPaster();
532+
return paster.pasteTheText(content);
533+
} catch (Exception ignore) {
534+
}
535+
break;
528536
default:
529537
try {
530538
// Lucko Pastebin
@@ -540,6 +548,7 @@ public String paste(@NotNull String content, PasteType type) {
540548
public enum PasteType {
541549
LUCKO,
542550
PASTEBIN,
543-
UBUNTU
551+
UBUNTU,
552+
HELPCHAT
544553
}
545554
}

0 commit comments

Comments
 (0)