mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
Fix Next Steps & Fix README (#202)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
54
patches/server/0136-fix-next-steps.patch
Normal file
54
patches/server/0136-fix-next-steps.patch
Normal file
@@ -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);
|
||||
Reference in New Issue
Block a user