NuVotifier-Fabric

Mod

A fork of Votifier, with more robust code and vote forwarding for fabric.

Server LibraryManagementSocialUtility

42 downloads
1 follower
Created3 months ago
Updated3 days ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

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:

  1. This module has been PRed to the original repository, however the author has never published a release of it.
  2. Due to the nature of Fabric, it requires regular updates to support the latest Minecraft version.

Setup Guide

Troubleshooting Guide

Developer Information

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:

Latest Votifier version:

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

dependencies {
	implementation("com.github.NuVotifier.NuVotifier:nuvotifier-api:VERSION")
	implementation 'com.github.DrexHD: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.

External resources



Project members

DrexHD

Member


Technical information

License
LGPL-3.0-only
Client side
unsupported
Server side
required
Project ID