ModShield
作者:rebot | 分类:模组
Minecraft 版本: 1.21.4
平台: fabric
标签: management technology utility
ModShield
A lightweight simple to use mod, allowing server admins to check client mods as well as forbid players from using certain mods.
Or allow players to use only specific mods.
Usage
Simply download the latest mod version on the server and the client.
It's important to note that a server running ModShield will require all clients to use it as well.
Server Config
All configuration is done through the config file: config/modshield.properties.
After you launch the mod for the first time a template version will be automatically generated, with descriptions of all options and how to use them.
To realod the config use the /mod-shield-reload command. Keep in mind administrator permissions are required.
API Usage (For Mod Developers)
To use the mod as a library add the maven repository and declare it as a dependency, in your build.gradle file like so:
// Add the repository
repositories {
maven {
url = 'https://maven.avarisgates.com' // ModShield
}
}
// Declare it as a dependency
dependencies {
// To package the mod with yours
modImplementation "com.avaris:ModShield:${project.modshield_version}"
// To use the mod in a seperate .jar file
// This won't strictly require the mod
compileOnly "com.avaris:ModShield:${project.modshield_version}"
}
It's also recommended to add the following to your gradle.properties file:
mod_shield=CURRENT_VERSION
Be sure to add replace CURRENT_VERSION with the version you wish to use.
It's always recommended to use the latest one.
请登录后举报
暂无评论,抢个沙发吧~