Catalog: rather send the user to the releases tab instead of the latest release

This commit is contained in:
Florian CUNY 2019-06-09 09:02:25 +02:00
parent ad5aa4a938
commit 870bdcb9f8

View File

@ -93,9 +93,9 @@ public class CatalogPanel {
"[install]", install,
"[description]", "WIP"));
// Set the link to the latest release
// Send the link to the releases tab on click
itemBuilder.clickHandler((panel, user1, clickType, slot) -> {
user1.sendRawMessage(ChatColor.GRAY + "" + ChatColor.ITALIC + "https://github.com/" + addon.getRepository() + "/releases/latest");
user1.sendRawMessage(ChatColor.GRAY + "" + ChatColor.ITALIC + "https://github.com/" + addon.getRepository() + "/releases");
return true;
});