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

Fix Next Steps & Fix README - resolve #198 #202

Merged
merged 3 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You can download the latest build (1.20.x) of Leaves by going [here](https://git

You can also [build it yourself](https://github.com/LeavesMC/Leaves#building).

You can visit our [documentation](https://docs.leavesmc.org/leaves) for more information.
You can visit our [documentation](https://docs.leavesmc.org/leaves/guides/getting-started) for more information.

## How To (Plugin developers)
Leaves-API:
Expand Down
2 changes: 1 addition & 1 deletion README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Leaves

也可以通过 [此处](https://github.com/LeavesMC/Leaves/blob/master/README_cn.md#自行构建) 的指南自行构建

如果你想要获得更多信息,那么你可以访问我们的 [文档](https://docs.leavesmc.org/zh/leaves)
如果你想要获得更多信息,那么你可以访问我们的 [文档](https://docs.leavesmc.org/zh_Hans/leaves/guides/getting-started)

## 对于插件开发者
Leaves-API:
Expand Down
58 changes: 58 additions & 0 deletions patches/server/0136-Fix-next-steps.patch
s-yh-china marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
Subject: [PATCH] fix next steps
---
Index: src/main/java/net/minecraft/server/MinecraftServer.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
--- a/src/main/java/net/minecraft/server/MinecraftServer.java (revision 6488c8038d4ae7dfbab02f8e963fc22148314e64)
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java (revision 9af8bd1bca85f336d1769ff13ffe48c61a34e727)
@@ -1155,15 +1155,15 @@
long tickSection = Util.getNanos();
long currentTime;
// Paper end - further improve server tick loop
- // Paper start - Add onboarding message for initial server start
+ // Leaves start - Add onboarding message for initial server start
if (io.papermc.paper.configuration.GlobalConfiguration.isFirstStart) {
LOGGER.info("*************************************************************************************");
LOGGER.info("This is the first time you're starting this server.");
LOGGER.info("It's recommended you read our 'Getting Started' documentation for guidance.");
- LOGGER.info("View this and more helpful information here: https://docs.papermc.io/paper/next-steps");
+ LOGGER.info("View this and more helpful information here: https://docs.leavesmc.org/leaves/guides/next-steps");
LOGGER.info("*************************************************************************************");
}
- // Paper end - Add onboarding message for initial server start
+ // Leaves end - Add onboarding message for initial server start

while (this.running) {
// Paper start - rewrite chunk system
Index: src/main/java/net/minecraft/server/gui/MinecraftServerGui.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java b/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java
--- a/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java (revision 6488c8038d4ae7dfbab02f8e963fc22148314e64)
+++ b/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java (revision 9af8bd1bca85f336d1769ff13ffe48c61a34e727)
@@ -116,9 +116,9 @@
return jpanel;
}

- // Paper start - Add onboarding message for initial server start
+ // Leaves start - Add onboarding message for initial server start
private JComponent buildOnboardingPanel() {
- String onboardingLink = "https://docs.papermc.io/paper/next-steps";
+ String onboardingLink = "https://docs.leavesmc.org/leaves/guides/next-steps";
JPanel jPanel = new JPanel();

javax.swing.JLabel jLabel = new javax.swing.JLabel("If you need help setting up your server you can visit:");
@@ -147,7 +147,7 @@

return jPanel;
}
- // Paper end - Add onboarding message for initial server start
+ // Leaves end - Add onboarding message for initial server start

private JComponent buildPlayerPanel() {
JList<?> jlist = new PlayerListComponent(this.server);