« Back to search

Mod

MariaReputation

by LuizFcc · score -142.2 · license: BSD-3-Clause

MariaReputation

Download latest release

A very simple API to add a reputation system for your server!

library multiplayer

MariaReputation

This mod adds a simple API for your mods to use and encourage good actions.

Important Tip: Each new player starts with 100.0 of reputation (now a floating-point number).

About the new AI Disclosure, it happens because of line 21 of /api/adjustReputation.lua.

API

The method list of MariaReputation consists of:

  • mariareputation:adjustReputation(TargetPlayerName, Delta) – Takes both functions of addReputation and subtractReputation;

  • mariareputation:getReputation(TargetPlayerName) – Fetches the reputation of a player;

  • mariareputation:setReputation(TargetPlayerName, Float) – (The only one spared...) Defines the reputation of the player;