docs: Update wiki link

This commit is contained in:
NotMyFault
2022-02-04 11:16:23 +01:00
parent 2bb72ebfea
commit d80bfc7495
10 changed files with 27 additions and 24 deletions

View File

@ -35,7 +35,7 @@ public class Settings extends Config {
public String ISSUES = "https://github.com/IntellectualSites/FastAsyncWorldEdit/issues";
@Final
@SuppressWarnings("unused")
public String WIKI = "https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki";
public String WIKI = "https://intellectualsites.github.io/fastasyncworldedit-documentation/";
@Final
public String DATE; // These values are set from FAWE before loading
@Final

View File

@ -89,10 +89,10 @@ public class RichMaskParser extends FaweParser<Mask> {
throw new SuggestInputParseException(
new NoMatchException(Caption.of("fawe.error.parse.unknown-mask", full,
TextComponent
.of("https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Patterns"
.of("https://intellectualsites.github.io/fastasyncworldedit-documentation/patterns/patterns"
)
.clickEvent(ClickEvent.openUrl(
"https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Patterns"
"https://intellectualsites.github.io/fastasyncworldedit-documentation/patterns/patterns"
))
)),
full,
@ -143,10 +143,10 @@ public class RichMaskParser extends FaweParser<Mask> {
throw new SuggestInputParseException(
new NoMatchException(Caption.of("fawe.error.parse.unknown-mask", full,
TextComponent
.of("https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Masks"
.of("https://intellectualsites.github.io/fastasyncworldedit-documentation/masks/masks"
)
.clickEvent(ClickEvent.openUrl(
"https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Masks"
"https://intellectualsites.github.io/fastasyncworldedit-documentation/masks/masks"
))
)),
full,
@ -178,7 +178,7 @@ public class RichMaskParser extends FaweParser<Mask> {
try {
String cmdArgs = ((args.isEmpty()) ? "" : " " + StringMan.join(args, " "));
List<Substring> split =
CommandArgParser.forArgString(cmdArgs).parseArgs().collect(Collectors.toList());
CommandArgParser.forArgString(cmdArgs).parseArgs().toList();
List<String> argStrings = split
.stream()
.map(Substring::getSubstring)

View File

@ -81,12 +81,11 @@ public class RichPatternParser extends FaweParser<Pattern> {
throw new SuggestInputParseException(
new NoMatchException(Caption.of("fawe.error.parse.unknown-pattern", full,
TextComponent
.of("https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki" +
"/Patterns"
.of("https://intellectualsites.github.io/fastasyncworldedit-documentation/patterns/patterns"
)
.clickEvent(
ClickEvent.openUrl(
"https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Patterns"
"https://intellectualsites.github.io/fastasyncworldedit-documentation/patterns/patterns"
))
)),
full,
@ -132,11 +131,11 @@ public class RichPatternParser extends FaweParser<Pattern> {
} catch (NoMatchException e) {
throw new NoMatchException(Caption.of("fawe.error.parse.unknown-pattern", full,
TextComponent
.of("https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Patterns"
.of("https://intellectualsites.github.io/fastasyncworldedit-documentation/patterns/patterns"
)
.clickEvent(
com.sk89q.worldedit.util.formatting.text.event.ClickEvent.openUrl(
"https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Patterns"
"https://intellectualsites.github.io/fastasyncworldedit-documentation/patterns/patterns"
))
));
}
@ -154,7 +153,7 @@ public class RichPatternParser extends FaweParser<Pattern> {
try {
String cmdArgs = ((args.isEmpty()) ? "" : " " + StringMan.join(args, " "));
List<Substring> split =
CommandArgParser.forArgString(cmdArgs).parseArgs().collect(Collectors.toList());
CommandArgParser.forArgString(cmdArgs).parseArgs().toList();
List<String> argStrings = split
.stream()
.map(Substring::getSubstring)

View File

@ -78,10 +78,12 @@ public class RichTransformParser extends FaweParser<ResettableExtent> {
} else {
throw new NoMatchException(Caption.of("fawe.error.parse.unknown-transform", pe.getFull(),
TextComponent
.of("https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Transforms"
.of("https://intellectualsites.github" +
".io/fastasyncworldedit-documentation/transforms/transforms"
)
.clickEvent(ClickEvent.openUrl(
"https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Transforms"
"https://intellectualsites.github" +
".io/fastasyncworldedit-documentation/transforms/transforms"
))
));
}
@ -93,10 +95,12 @@ public class RichTransformParser extends FaweParser<ResettableExtent> {
} catch (Throwable e) {
throw new NoMatchException(Caption.of("fawe.error.parse.unknown-transform", pe.getFull(),
TextComponent
.of("https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Transforms"
.of("https://intellectualsites.github" +
".io/fastasyncworldedit-documentation/transforms/transforms"
)
.clickEvent(ClickEvent.openUrl(
"https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Transforms"
"https://intellectualsites.github" +
".io/fastasyncworldedit-documentation/transforms/transforms"
))
));
}
@ -146,9 +150,9 @@ public class RichTransformParser extends FaweParser<ResettableExtent> {
}
if (union.isEmpty()) {
throw new NoMatchException(Caption.of("fawe.error.parse.unknown-transform", input,
TextComponent.of("https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Transforms"
TextComponent.of("https://intellectualsites.github.io/fastasyncworldedit-documentation/transforms/transforms"
).clickEvent(ClickEvent.openUrl(
"https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki/Transforms"
"https://intellectualsites.github.io/fastasyncworldedit-documentation/transforms/transforms"
))
));
} else if (union.size() == 1) {

View File

@ -77,7 +77,7 @@ public class WorldEditCommands {
actor.print(TextComponent.of("FastAsyncWorldEdit" + fVerStr));
actor.print(TextComponent.of("Authors: Empire92, MattBDev, IronApollo, dordsor21 and NotMyFault"));
actor.print(TextComponent.of("Wiki: https://git.io/JMEPa")
.clickEvent(ClickEvent.openUrl("https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki")));
.clickEvent(ClickEvent.openUrl("https://intellectualsites.github.io/fastasyncworldedit-documentation/")));
actor.print(TextComponent.of("Discord: https://discord.gg/intellectualsites")
.clickEvent(ClickEvent.openUrl("https://discord.gg/intellectualsites")));
UpdateNotification.doUpdateNotification(actor);

View File

@ -33,7 +33,7 @@ import java.net.URISyntaxException;
public class InfoEntryPoint {
private static final String INSTALL_URL = "https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki";
private static final String INSTALL_URL = "https://intellectualsites.github.io/fastasyncworldedit-documentation/";
private static final String SUPPORT_URL = "https://discord.gg/intellectualsites";
private static String getMessage(boolean html) {