Download Fabric Reputation System — Minecraft Mods — MetaMods

Fabric Reputation System

Active

Downloads

0

Last update

2 years ago

Versions

1.18.2 — 1.19.2
Server
Fabric
Quilt
Control
Utils

Fabric Reputation System

This mod implements a player reputation management system for Minecraft servers. Players can receive positive and negative ratings from other server members, allowing for tracking of their behavior within the gaming community.

Main Features

The system enables rewarding friendly players with positive ratings, while rule violators (such as griefers and thieves) receive negative ratings. Various restrictions and privileges can be configured based on player reputation.

Management Commands

The following commands are available for working with the reputation system:

  • /rep view [player] — view the current reputation of the specified player
  • /rep set <reputation>, /rep set <player> <reputation> (operators only) — set reputation value
  • /rep upvote <player> [reason] — increase player reputation with optional reason
  • /rep downvote <player> [reason] — decrease player reputation with optional reason
  • /rep reload (operators only) — reload configuration file
  • /rep wanted — view coordinates of players with low reputation

Datapack Integration

Player reputation value can be saved to the score system using the following command:

execute as <entity> store result score @s <objective> run rep view @s[type=player]

System Configuration

The mod's configuration file allows flexible customization of system parameters:

{
    // Cooldown time in seconds
    // /rep set commands are not affected by cooldown, while /rep upvote and /rep downvote are
    cooldown: 84600,
    // Minimum and maximum reputation values
    // All reputation changes will be clamped between these values
    minRep: null,
    maxRep: null,
    // Minimum reputation required for PvP participation
    // Players with reputation below this value cannot attack other players
    minPvPRep: null,
    // Minimum reputation required for building in spawn protection area
    minSpawnBuildingRep: null,
    // Maximum reputation for appearing in wanted list
    maxWantedRep: null,
    // Require reason specification when voting
    votingReasonRequired: true,
    // Show voting reason in notifications
    showReason: false,
    // Notify player about receiving positive rating
    upvoteNotifications: false,
    // Notify player about receiving negative rating
    downvoteNotifications: false,
    // Webhook for logging votes to Discord
    discordWebhookUrl: null
}

Integration with Other Mods

To use the reputation system API in other mods, add the dependency to the build.gradle file:

repositories {
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    modImplementation "maven.modrinth:fabric-rep-system:1.0.0"
}

After this, player reputation data can be obtained using the RepUtils.getPlayerReputation(playerUuid) method.

Project members
Gaming32

Gaming32

Admin

Created: 18 Nov 2022

ID: 8964