Skip to content

FortiBrine/FMeria

Repository files navigation

FMeria

FMeria is a Bukkit/Paper (Minecraft) plugin implementing a faction/government roleplay system: ranks, salaries, home teleport, invites, blacklists, an in-game "law book" GUI, and PlaceholderAPI placeholders.

This is my first Java project ever. I started writing it back in June 2021, and it's stuck with me since then.

Table of contents

Installation

  1. Grab a built jar (see Building from source, or a release if one is published) and drop it into your server's plugins/ folder.
  2. FMeria requires Vault for the economy features (/fbalance, /setsalary, payday) to work, plus any Vault-compatible economy plugin.
  3. PlaceholderAPI is optional. If it's installed, FMeria registers its own placeholder expansion automatically.
  4. Start the server once to let the plugin generate config.yml and messages.yml under plugins/FMeria/, then edit them to taste and run /fmeria reload (requires fmeria.reload).

Requires Java 8+ and a Paper (or Spigot-API-compatible) server targeting API version 1.13.

Building from source

./gradlew build       # compiles and produces a shaded jar under build/libs
./gradlew shadowJar    # build the fat jar directly

There are no tests or lint/format tooling in this repository.

Commands & permissions

Most commands aren't gated by a Bukkit permission node at all. They're guarded instead by faction membership and rank checks (must be in a faction, must be top-3 rank, and so on). Only four commands declare an explicit permission node; those are noted below. Everything else is available to any faction member subject to those in-game rank checks.

Faction Law Invite Economy Communication Admin Misc
/fcreate <id> <name> (fmeria.fcreate) /law list /invite <target> /fbalance /d <message> /fmeria reload (fmeria.reload) /fhelp
/setrank <target> <faction> <rank> (fmeria.setrank) /law setcategory <id> <name> /inv accept /fbalance money pay|take <amount> /gov <message> /hp <target>
/franks <faction> <ranks...> (fmeria.franks) /law delcategory <id> /inv decline /setsalary <rank> <salary> /rb <message>
/downrang <target> /law set <categoryId> <lawId> <name> /rr <message>
/uprang <target> /law del <categoryId> <lawId>
/fblock <target> /law settime <categoryId> <lawId> <minutes>
/funblock <target>
/fvig <target>
/funvig <target>
/uninvite <target>
/fhome
/setfhome
/f leave
/fonline
/setfname <"name"|rank#> <text>
/leaders
/makeleader <target> / /makeleader -

Notes:

  • /law's write subcommands (setcategory, delcategory, set, del, settime) additionally require the executor to be a top-ranked member of the "Meria" faction. list is open to everyone.
  • /d and /gov require top-3-rank; /gov additionally requires the executor's faction be flagged as a government faction.
  • /hp requires the executor's faction be flagged as a hospital faction.

Contributing

Contributions are welcome. Please follow Conventional Commits for commit messages (feat:, fix:, refactor:, chore:, etc.) so the history stays readable.

License

Dual-licensed under either of

at your option.

About

Paper/Bukkit plugin for a Minecraft faction and government roleplay server: ranks, salaries, home teleport, invites, blacklists, and an in-game law book.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages