Skip to content

A Paper fork aim to find balance between performance, vanilla and stability

License

Notifications You must be signed in to change notification settings

Winds-Studio/Leaf

Repository files navigation

Leaf

Github ReleasesGithub Actions BuildDiscord

Leaf is a drop-in replacement for Paper servers designed to remove some checks, customized and high-performance, built on top of Gale with optimizations and fixes from other forks.

Warning

Leaf is an EXPERIMENTAL fork of Paper there MAY BE issues depending on server to server, test and backup servers before switching to it.

🍃 Features

  • Fork of Gale for better performance
  • Async pathfinding, mob spawning and entity tracker
  • Various optimizations blending from other forks
  • Fully compatible with Bukkit, Spigot and Paper plugins
  • Latest dependencies, keeping all dependencies in the newest version
  • Allows all characters in usernames, including Chinese and other characters
  • Fixes some Minecraft bugs
  • Configurable UseItem distance for anarchy servers
  • Mod Protocols support
  • More customized relying on features of Purpur
  • Support for Linear region file format
  • Maintenance friendly, integrating with Sentry of Pufferfish to easy track all errors coming from your server in excruciating detail
  • And more...

📈 bStats

bStats Graph Data

📫 Contact

📫 Donation

If you love my work, feel free to donate :)

📥 Download

You can find latest successful build in GitHub Action or Releases

Please note Java >= 21 is required.

📦 Building

Building a Paperclip JAR for distribution:

./gradlew applyPatches && ./gradlew createMojmapPaperclipJar

🧪 API

Maven

<repository>
    <id>leafmc</id>
    <url>https://maven.nostal.ink/repository/maven-snapshots/</url>
</repository>
<dependency>
    <groupId>cn.dreeam.leaf</groupId>
    <artifactId>leaf-api</artifactId>
    <version>1.21.1-R0.1-SNAPSHOT</version>
    <scope>provided</scope>
</dependency>

Gradle

repositories {
  maven {
    url = uri("https://maven.nostal.ink/repository/maven-snapshots/")
  }
}

dependencies {
    compileOnly("cn.dreeam.leaf:leaf-api:1.21.1-R0.1-SNAPSHOT")
}

java {
  toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

⚖️ License

Paperweight files are licensed under MIT. Patches are licensed under MIT, unless indicated differently in their header. Binaries are licensed under GPL-3.0.

Also see PaperMC/Paper and PaperMC/Paperweight for the license of some material used by this project.

📜 Credits

Thanks to these projects below. Leaf includes some patches taken from them.
If these excellent projects hadn't appeared, Leaf wouldn't have become great.

🔥 Special Thanks

Jianke Cloud Host cloud of swordsman | 剑客云

If you want to find a cheaper, high performance, stable with lower latency, then cloud of swordsman is a good choice! Registers and purchases in here.

如果你想找一个低价高性能, 低延迟的云服务商,剑客云是个不错的选择! 你可以在这里注册.


YourKit

YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.