mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 01:12:13 +02:00
Update links
This commit is contained in:
parent
4e70266ca3
commit
3201e66a0a
2
.github/FUNDING.yml
vendored
2
.github/FUNDING.yml
vendored
@ -1,3 +1,3 @@
|
|||||||
# These are supported funding model platforms
|
# These are supported funding model platforms
|
||||||
|
|
||||||
custom: https://www.wurstclient.net/donate/
|
custom: https://www.wurstclient.net/donate/?utm_source=GitHub&utm_medium=Wurst7&utm_campaign=GitHub+Sponsors&utm_content=Sponsor+this+project
|
||||||
|
2
.github/ISSUE_TEMPLATE/config.yml
vendored
2
.github/ISSUE_TEMPLATE/config.yml
vendored
@ -4,5 +4,5 @@ contact_links:
|
|||||||
url: https://www.reddit.com/r/WurstClient/
|
url: https://www.reddit.com/r/WurstClient/
|
||||||
about: For general discussion, support, memes, etc.
|
about: For general discussion, support, memes, etc.
|
||||||
- name: Contact Alexander
|
- name: Contact Alexander
|
||||||
url: https://www.wurstclient.net/contact/
|
url: https://www.wurstclient.net/contact/?utm_source=GitHub&utm_medium=Wurst7&utm_campaign=Issues&utm_content=Contact+Alexander
|
||||||
about: For anything that shouldn't be public.
|
about: For anything that shouldn't be public.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Downloads (for users)
|
## Downloads (for users)
|
||||||
|
|
||||||
https://www.wurstclient.net/download/
|
[https://www.wurstclient.net/download/](https://www.wurstclient.net/download/?utm_source=GitHub&utm_medium=Wurst7&utm_campaign=README.md&utm_content=Downloads+%28for+users%29)
|
||||||
|
|
||||||
## Setup (for developers)
|
## Setup (for developers)
|
||||||
|
|
||||||
|
@ -121,21 +121,22 @@ public class WurstOptionsScreen extends Screen
|
|||||||
OperatingSystem os = Util.getOperatingSystem();
|
OperatingSystem os = Util.getOperatingSystem();
|
||||||
|
|
||||||
new WurstOptionsButton(54, 24, () -> "Official Website",
|
new WurstOptionsButton(54, 24, () -> "Official Website",
|
||||||
"WurstClient.net", b -> os.open("https://www.wurstclient.net/"));
|
"WurstClient.net", b -> os.open(
|
||||||
|
"https://www.wurstclient.net/?utm_source=Wurst+Client&utm_medium=Wurst+Options&utm_content=Official+Website"));
|
||||||
|
|
||||||
new WurstOptionsButton(54, 48, () -> "Wurst Wiki",
|
new WurstOptionsButton(54, 48, () -> "Wurst Wiki", "Wurst.Wiki",
|
||||||
"Wiki.WurstClient.net",
|
b -> os.open(
|
||||||
b -> os.open("https://wiki.wurstclient.net/"));
|
"https://wurst.wiki/?utm_source=Wurst+Client&utm_medium=Wurst+Options&utm_content=Wurst+Wiki"));
|
||||||
|
|
||||||
new WurstOptionsButton(54, 72, () -> "Twitter", "@Wurst_Imperium",
|
new WurstOptionsButton(54, 72, () -> "Twitter", "@Wurst_Imperium",
|
||||||
b -> os.open("https://twitter.com/Wurst_Imperium"));
|
b -> os.open("https://www.wurstclient.net/twitter/"));
|
||||||
|
|
||||||
new WurstOptionsButton(54, 96, () -> "Reddit", "r/WurstClient",
|
new WurstOptionsButton(54, 96, () -> "Reddit", "r/WurstClient",
|
||||||
b -> os.open("https://www.reddit.com/r/WurstClient/"));
|
b -> os.open("https://www.wurstclient.net/reddit/"));
|
||||||
|
|
||||||
new WurstOptionsButton(54, 120, () -> "Donate",
|
new WurstOptionsButton(54, 120, () -> "Donate",
|
||||||
"paypal.me/WurstImperium",
|
"WurstClient.net/donate", b -> os.open(
|
||||||
b -> os.open("https://www.wurstclient.net/donate/"));
|
"https://www.wurstclient.net/donate/?utm_source=Wurst+Client&utm_medium=Wurst+Options&utm_content=Donate"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -33,7 +33,8 @@ public final class ChangelogOtf extends OtherFeature
|
|||||||
@Override
|
@Override
|
||||||
public void doPrimaryAction()
|
public void doPrimaryAction()
|
||||||
{
|
{
|
||||||
String link = new Version(WurstClient.VERSION).getChangelogLink();
|
String link = new Version(WurstClient.VERSION).getChangelogLink()
|
||||||
|
+ "?utm_source=Wurst+Client&utm_medium=ChangelogOtf&utm_content=View+Changelog";
|
||||||
Util.getOperatingSystem().open(link);
|
Util.getOperatingSystem().open(link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ public class ServerFinderScreen extends Screen
|
|||||||
|
|
||||||
addDrawableChild(ButtonWidget.builder(Text.literal("Tutorial"),
|
addDrawableChild(ButtonWidget.builder(Text.literal("Tutorial"),
|
||||||
b -> Util.getOperatingSystem().open(
|
b -> Util.getOperatingSystem().open(
|
||||||
"https://www.wurstclient.net/wiki/Special_Features/Server_Finder/"))
|
"https://www.wurstclient.net/serverfinder-tutorial/"))
|
||||||
.dimensions(width / 2 - 100, height / 4 + 120 + 12, 200, 20)
|
.dimensions(width / 2 - 100, height / 4 + 120 + 12, 200, 20)
|
||||||
.build());
|
.build());
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ public final class Version implements Comparable<Version>
|
|||||||
|
|
||||||
public String getChangelogLink()
|
public String getChangelogLink()
|
||||||
{
|
{
|
||||||
String version = major + "-" + minor;
|
String version = major + "-" + minor + "-" + patch;
|
||||||
|
|
||||||
if(isPreRelease())
|
if(isPreRelease())
|
||||||
version += "pre" + preRelease;
|
version += "pre" + preRelease;
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
*/
|
*/
|
||||||
package net.wurstclient.update;
|
package net.wurstclient.update;
|
||||||
|
|
||||||
|
import java.net.URLEncoder;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
|
||||||
import net.minecraft.text.ClickEvent;
|
import net.minecraft.text.ClickEvent;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
import net.wurstclient.WurstClient;
|
import net.wurstclient.WurstClient;
|
||||||
@ -84,7 +87,8 @@ public final class WurstUpdater implements UpdateListener
|
|||||||
{
|
{
|
||||||
String text = "An error occurred while checking for updates."
|
String text = "An error occurred while checking for updates."
|
||||||
+ " Click \u00a7nhere\u00a7r to check manually.";
|
+ " Click \u00a7nhere\u00a7r to check manually.";
|
||||||
String url = "https://www.wurstclient.net/download/";
|
String url =
|
||||||
|
"https://www.wurstclient.net/download/?utm_source=Wurst+Client&utm_medium=WurstUpdater+chat+message&utm_content=An+error+occurred+while+checking+for+updates.";
|
||||||
showLink(text, url);
|
showLink(text, url);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -92,9 +96,13 @@ public final class WurstUpdater implements UpdateListener
|
|||||||
if(!outdated)
|
if(!outdated)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
String text = "Wurst " + latestVersion + " is now available."
|
String textPart1 = "Wurst " + latestVersion + " MC"
|
||||||
+ " Click \u00a7nhere\u00a7r to download the update.";
|
+ WurstClient.MC_VERSION + " is now available.";
|
||||||
String url = "https://www.wurstclient.net/download/";
|
String text =
|
||||||
|
textPart1 + " Click \u00a7nhere\u00a7r to download the update.";
|
||||||
|
String url =
|
||||||
|
"https://www.wurstclient.net/download/?utm_source=Wurst+Client&utm_medium=WurstUpdater+chat+message&utm_content="
|
||||||
|
+ URLEncoder.encode(textPart1, StandardCharsets.UTF_8);
|
||||||
showLink(text, url);
|
showLink(text, url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -178,8 +178,7 @@ public class ForceOpDialog extends JDialog
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
String howToLink =
|
String howToLink = "https://www.wurstclient.net/forceop-tutorial/";
|
||||||
"https://www.wurstclient.net/Mods/Force_OP_(AuthMeCracker)/";
|
|
||||||
|
|
||||||
Desktop.getDesktop().browse(URI.create(howToLink));
|
Desktop.getDesktop().browse(URI.create(howToLink));
|
||||||
|
|
||||||
|
@ -9,8 +9,9 @@
|
|||||||
"Alexander01998"
|
"Alexander01998"
|
||||||
],
|
],
|
||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://www.wurstclient.net/",
|
"homepage": "https://www.wurstclient.net/?utm_source=Wurst+Client&utm_medium=ModMenu&utm_content=Website",
|
||||||
"sources": "https://www.wurstclient.net/github/"
|
"issues": "https://www.wurstclient.net/wurst7issues/",
|
||||||
|
"sources": "https://www.wurstclient.net/wurst7sources/"
|
||||||
},
|
},
|
||||||
|
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
@ -39,5 +40,13 @@
|
|||||||
"breaks": {
|
"breaks": {
|
||||||
"wi_zoom": "*",
|
"wi_zoom": "*",
|
||||||
"wi-zoom": "*"
|
"wi-zoom": "*"
|
||||||
|
},
|
||||||
|
"custom": {
|
||||||
|
"modmenu": {
|
||||||
|
"links": {
|
||||||
|
"Wiki": "https://wurst.wiki/?utm_source=Wurst+Client&utm_medium=ModMenu&utm_content=Wiki",
|
||||||
|
"Donate": "https://www.wurstclient.net/donate/?utm_source=Wurst+Client&utm_medium=ModMenu&utm_content=Donate"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user