Download NuVotifier-Fabric — Minecraft Mods — MetaMods

NuVotifier-Fabric

Active

Downloads

0

Last update

4 months ago

Versions

1.20 — 1.21.8
Server
Fabric
Quilt
Libraries
Control
Social

NuVotifier-Fabric

NuVotifier serves as a secure alternative to the original Votifier project and maintains compatibility with that system. This specific version is tailored to work with Fabric.

For system administrators: NuVotifier-Fabric operates independently from the main repository. This separation is necessary because Fabric undergoes regular updates and requires support for the most recent versions of the game client.

Developing Voting Modules

Adding dependency to project:

To integrate into a gradle project, use the following configuration:

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation("com.github.NuVotifier.NuVotifier:nuvotifier-api:VERSION")
    implementation 'com.github.DrexHD:NuVotifier-Fabric:VERSION'
}

Creating Vote Handlers

Vote handlers are registered through the VoteListener.EVENT.

Basic handler example:

// Handler package
package me.drex.fabricvotelistener;

// Imports
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: " + vote);
        });
    }
}

Adding dependency in fabric.mod.json:

{
  "depends": {
    "nuvotifier-fabric": "*"
  }
}

The project is distributed under GNU GPLv3 license.

Project members
DrexHD

DrexHD

Developer

Created: 19 Feb 2024

ID: 17797