Skip to content

Commit

Permalink
Fix Next Steps & Fix README (LeavesMC#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
Request Timeout authored Apr 5, 2024
1 parent 82fc9e3 commit 73fd5b8
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 2 deletions.
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
54 changes: 54 additions & 0 deletions patches/server/0136-fix-next-steps.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: silvery0113 <silvery0113@foxmail.com>
Date: Fri, 5 Apr 2024 12:32:17 +0800
Subject: [PATCH] fix next steps


diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
index ce173fa55506105c6a22c0dfe278aa25fd9bfaa7..5e4d701943b00db786cfb8509121f64e2097cf88 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -1155,15 +1155,15 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
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
diff --git a/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java b/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java
index 7704a5951ac3d02020ed0f40d76500dd6ba005af..7814f5f5dccccabe0a79fa2fe94da29208905aab 100644
--- a/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java
+++ b/src/main/java/net/minecraft/server/gui/MinecraftServerGui.java
@@ -116,9 +116,9 @@ public class MinecraftServerGui extends JComponent {
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 @@ public class MinecraftServerGui extends JComponent {

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);

0 comments on commit 73fd5b8

Please # to comment.