You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
-[ ] Make the feature `marker-descs` work per section
17
17
-[ ] Unify the code that loads server into a section (duplicated at SectionManager and ServerSection)
18
18
-[ ] Unify some of the code used in the FallbackCommand and SectionCommand
19
-
-[] Use https://github.com/kennedyoliveira/pastebin4j instead of jpaste
19
+
-[x] Use https://github.com/kennedyoliveira/pastebin4j instead of jpaste
20
20
-[ ] (!) Make the section initialization work in stages instead of being hardcoded
21
21
-[ ] (!) Ditch the faucet dependency and use [ConfigMe](https://github.com/AuthMe/ConfigMe) and [DependencyInjector](https://github.com/ljacqu/DependencyInjector) instead
22
22
-[ ] Use a separate file for configuring the sections, must be done alongside the previous item
sender.sendMessage(newComponentBuilder(message.replace("{link}", link == null ? link = paste(plugin) : link)
77
-
).color(ChatColor.GREEN).create());
81
+
sender.sendMessage(newComponentBuilder(message.replace("{link}", link == null ? link = paste(plugin) : link)).color(ChatColor.GREEN).create());
82
+
78
83
if (task != null) {
79
84
plugin.getProxy().getScheduler().cancel(task);
80
85
}
86
+
81
87
task = plugin.getProxy().getScheduler().schedule(plugin, () -> link = null, 5, TimeUnit.MINUTES);
82
-
} catch (PasteExceptione) {
83
-
if (e.getMessage().equals("Failed to generate paste: Post limit, maximum pastes per 24h reached")) {
84
-
sender.sendMessage(newComponentBuilder("The file could not be pasted, your ip has reached the 10 pastes per day limit").color(ChatColor.RED).create());
85
-
} else {
86
-
sender.sendMessage(newComponentBuilder("An unexpected error occurred while pasting the file").color(ChatColor.RED).create());
87
-
}
88
-
e.printStackTrace();
89
88
} catch (Exceptione) {
90
89
sender.sendMessage(newComponentBuilder("An internal error occurred while attempting to perform this command").color(ChatColor.RED).create());
0 commit comments