Update shop link to stratus buycraft
This commit is contained in:
parent
88a250b2bb
commit
89a9954075
|
@ -13,12 +13,17 @@ import tc.oc.commons.core.util.ExceptionUtils;
|
|||
public class Links {
|
||||
private Links() {}
|
||||
|
||||
public static final String HOST = "localhost"; // TODO: configurable
|
||||
public static final String HOST = "stratus.network";
|
||||
public static final String SHOP_HOST = "stratusnetwork.buycraft.net";
|
||||
|
||||
public static URI homeUri(String path) throws URISyntaxException {
|
||||
return new URI("http", HOST, path, null);
|
||||
}
|
||||
|
||||
public static URI shopUri() throws URISyntaxException {
|
||||
return new URI("http", SHOP_HOST, null, null);
|
||||
}
|
||||
|
||||
public static URI homeUriSafe(String path) {
|
||||
return ExceptionUtils.propagate(() -> homeUri(path));
|
||||
}
|
||||
|
@ -39,8 +44,12 @@ public class Links {
|
|||
return homeLinkSafe("/");
|
||||
}
|
||||
|
||||
public static BaseComponent shopLink(boolean compact) throws URISyntaxException {
|
||||
return new LinkComponent(shopUri(), compact);
|
||||
}
|
||||
|
||||
public static BaseComponent shopLink() {
|
||||
return homeLinkSafe("/shop");
|
||||
return ExceptionUtils.propagate(() -> shopLink(true));
|
||||
}
|
||||
|
||||
public static BaseComponent appealLink() {
|
||||
|
|
Loading…
Reference in New Issue