NuVotifier-Fabric
A fork of Votifier, with more robust code and vote forwarding for fabric.
介绍
NuVotifier-Fabric
NuVotifier is a secure alternative to using the original Votifier project. NuVotifier will work in place of Votifier.
NuVotifier-Fabric is an implementation of NuVotifier for Fabric. This
implementation has been moved away from the main repository for two reasons:
- This module has been PRed to the original repository, however the author has never published a release of it.
- Due to the nature of Fabric, it requires regular updates to support the latest Minecraft version.
Developing a vote listener
Adding NuVotifier-Fabric as a dependency to your build system
You can include NuVotifier-Fabric into your gradle project using the following lines:
Latest NuVotifier-Fabric version:
repositories {
maven { url 'https://jitpack.io' } // required for NuVotifier
maven { url "https://api.modrinth.com/maven" }
}
dependencies {
modImplementation("maven.modrinth:nuvotifier-fabric:VERSION")
}
Writing Vote Listeners
A vote listener registers the VoteListener.EVENT.
A basic vote listener looks something like this:
package me.drex.fabricvotelistener;
import com.vexsoftware.votifier.fabric.event.VoteListener;
import net.fabricmc.api.DedicatedServerModInitializer;
public class TestVoteListener implements DedicatedServerModInitializer {
@Override
public void onInitializeServer() {
VoteListener.EVENT.register(vote -> {
System.out.println("Received " + vote);
});
}
}
Add nuvotifier-fabric as a dependency in your fabric.mod.json
{
"depends": {
"nuvotifier-fabric": "*"
}
}
License
NuVotifier is GNU GPLv3 licensed. This project’s license can be viewed here.
常见问题
NuVotifier-Fabric 支持哪些 Minecraft 版本?
NuVotifier-Fabric 支持 Minecraft Java 版 1.20–26.3,共 23 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。
NuVotifier-Fabric 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
DrexHD 的其他作品
查看全部 →CrashExploitFixer
这个模组修复了在Minecraft中发现的许多崩溃漏洞。
VillagerConfig
基于数据驱动交易的高级村民配置
quick pack
优化数据包/资源包 zip 文件的加载时间
Ledger
一款服务端日志记录模组
评论
登录后评论和评分