Fabric Reputation System
This is a mod to manage player reputation on a server. Mean players (e.g. griefers and thieves) can get downvoted, while nice players can get upvoted. You can configure some actions to happen based on a player's reputation.
介绍
Fabric Reputation System
This is a mod to manage player reputation on a server. Mean players (e.g. griefers and thieves) can get downvoted, while nice players can get upvoted. You can configure some actions to happen based on a player’s reputation. You can configure even more actions using a datapack.
Command summary
/rep view [player]— View the reputation of a player./rep set <rep>,/rep set <player> <rep>(operator only) — Set the reputation of a player./rep upvote <player> [reason]— Upvote a player. Thereasonargument can be configured to be required./rep downvote <player> [reason]— Downvote a player. Thereasonargument can be configured to be required./rep reload(operator only) — Reload the config file/rep wanted— View the coordinates of a “wanted” player.
Getting the reputation in a datapack
You can save a player’s reputation into a scoreboard objective with the following command:
execute as <entity> store result score @s <objective> run rep view @s[type=player]
Configuring the mod
Here’s the mod’s default config file:
{
// Cooldown time is in seconds.
// `/rep set` is not affected by cooldown, but `/rep upvote` and `/rep downvote` are.
cooldown: 84600,
// The minimum and maximum reputation.
// All reputation changes will clamp between these values.
minRep: null,
maxRep: null,
// Minimum required reputation to PvP. Anything lower than this will not be able to hit another player.
// Can be set to null to always allow PvP.
minPvPRep: null,
// Minimum required reputation to modify within the range of spawn protection.
// Can be set to null to always disallow modification.
minSpawnBuildingRep: null,
// Maximum required reputation to be wanted (have co-ords shown).
// Can be set to null to not allow anyone to be wanted.
maxWantedRep: null,
// Require a reason to vote on a player.
votingReasonRequired: true,
// Show the upvote/downvote reason in notifications.
showReason: false,
// Notify the player when they get upvoted.
upvoteNotifications: false,
// Notify the player when they get downvoted.
downvoteNotifications: false,
// Webhook to log upvotes and downvotes.
discordWebhookUrl: null
}
Querying reputation from a mod
First, depend on the mod in your build.gradle:
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"
}
Then, you can query the API for reputation data using RepUtils.getPlayerReputation(playerUuid).
常见问题
Fabric Reputation System 支持哪些 Minecraft 版本?
Fabric Reputation System 支持 Minecraft Java 版 1.18.2–1.19.2,共 2 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。
Fabric Reputation System 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
TakiSpl 的其他作品
查看全部 →World Host
无需运行服务端或设置端口转发,即可托管你的单人游戏地图!
Mod Loading Screen
An advanced loading screen with the loading progress of mods
Bingo
A multiplatform data-driven Bingo mod
Modrinth SMP
[archived] Modpack for the (unofficial) Modrinth SMP
评论
登录后评论和评分