SQDLib
This is a library mod/plugin, primarily used by SQD Studios (but not limited to). This adds some stuff for developers to use, and I believe it's a pretty good tool for developers to migrate their plugins to mods
介绍
SQDLib
A library so I don’t have to copy and paste the same things again and again
It’s lightweight
What did you think, it’s like only 10 classes? The finished build output is as small as 21,1 Kilobytes so it’s not
really going to affect your jar output
Using as an administrator
If you have a plugin which _clearly states you need_ to have SQDLib installed for it to work, where can you download
it? Well you can get it from either _Modrinth (Not yet approved)_
or GitHub Releases. Warning though because SQDLib changes a lot, very
fast
that can do it that 1 version works while the other just breaks all the plugins which may use an older or newer version
of SQDLib.
Developing with SQDLib
Bundling (Recommended)
Adding the repository
repositories {
maven {
name = "chamosmpRepoReleases"
url = uri("https://maven.chamosmp.net/releases")
}
}
Adding the dependency (Plugin)
plugins {
// Adding the shadow plugin
id("com.gradleup.shadow") version "9.6.1"
}
dependencies {
// Replace 3.2.0-BETA with the latest version, and you can replace "paper", with the following platforms:
// velocity, bungee, spigot
implementation("com.sqdstudios.sqdlib:sqdlib-paper:3.2.0-BETA")
}
tasks {
// The shadowJar configuration
shadowJar {
configurations = project.configurations.runtimeClasspath.map { setOf(it) }
relocate("com.sqdstudios.sqdlib", "(your plugin group).libs.sqdlib")
}
}
Adding the dependency (Mod)
dependencies {
// Replace 3.2.0-BETA with the latest version
implementation("com.sqdstudios.sqdlib:sqdlib-fabric:3.2.0-BETA")
}
Mod/Plugin Dependency (Not Recommended)
Adding the repository
repositories {
maven {
name = "chamosmpRepoReleases"
url = uri("https://maven.chamosmp.net/releases")
}
}
Adding the dependency (Plugin)
When using a paper-plugin.yml, make sure you have join-classpath: true when using this, or else you’ll get class not
found exceptions
dependencies {
// Replace 3.2.0-BETA with the latest version, and you can replace "paper", with the following platforms:
// velocity, bungee, spigot
compileOnly("com.sqdstudios.sqdlib:sqdlib-paper:3.2.0-BETA")
}
Adding the dependency (Mod)
dependencies {
// Replace 3.2.0-BETA with the latest version
compileOnly("com.sqdstudios.sqdlib:sqdlib-fabric:3.2.0-BETA")
}
Migrating from v3 to v4
Version 4 is probably the biggest major release and it contains some breaking changes.
You’ll first need to replace every instance of net.chamosmp with com.sqdstudios (And in the dependency too)
If you’re migrating from even older versions like v2, you should delete the packages that are not found and make your
IDE suggest them to you because they’re undocumented
常见问题
SQDLib 支持哪些 Minecraft 版本?
SQDLib 支持 Minecraft Java 版 1.20–26.3,共 24 个版本,可用的加载器:Bukkit / Fabric / Folia / Paper / Purpur / Spigot / Velocity。下载时注意选择和你游戏版本一致的文件。
SQDLib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Bukkit / Fabric / Folia / Paper / Purpur / Spigot / Velocity,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。
SQD Studios 的其他作品
查看全部 →
Chamo’s Pack
Fork of Theobaldthebird's Barebones PVP Overlays. Have you ever thought everything in white, well... It's almost what this texture pack does!
Lifesteal Experience
This is a modpack to simulate the lifesteal experience
ChaMods
My mods lol. Optimize and PvP here for you
评论
登录后评论和评分