Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Link in config file #30

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/org/sculk/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ private void parseList(String content) {
}

private String writeProperties() {
StringBuilder content = new StringBuilder("#Properties Config file\r\n#" + new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()) + "\r\n");
//TODO: add redirection to website Docs (https://docs.sculkmp.org/)
StringBuilder content = new StringBuilder("#Properties Config file\r\n#" + new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date()) + "\r\n#https://docs.sculkmp.org/" + "\r\n");
for (Object o : this.config.entrySet()) {
Map.Entry entry = (Map.Entry) o;
Object v = entry.getValue();
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/org/sculk/network/protocol/ProtocolInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import java.util.concurrent.ConcurrentHashMap;
import static com.google.common.base.Preconditions.checkNotNull;

import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import static com.google.common.base.Preconditions.checkNotNull;

/*
* ____ _ _
* / ___| ___ _ _| | | __
Expand All @@ -32,6 +36,7 @@ public class ProtocolInfo {
private static final Set<BedrockCodec> CODECS = ConcurrentHashMap.newKeySet();

public static String MINECRAFT_VERSION_NETWORK = "1.21.30";

public static String MINECRAFT_VERSION = "v" + MINECRAFT_VERSION_NETWORK;

static {
Expand Down
Loading