BetterPrisons

An advanced prisons plugin for Pocketmine-MP.

BetterPrisons

Advanced prisons plugin for Pocketmine-MP.

Features

  • Ranking up and prestiging system.
  • Customisable command executing and permission giving system per rank up/prestige.
  • Optional rank system and scorehud addons.
  • Compatibility with bedrock economy.
  • Customisable messages and multipliers.
  • Optional requirement for players to mine a specified number of blocks before prestiging.

Installation

  1. Download plugin phar from here
  2. Add to your servers' plugin folder.
  3. Restart server.

Commands

CommandDescriptionPermission
/rankupRankup command.betterprisons.rankup.command
/prestigePrestige Commandbetterprisons.prestige.command

ScoreHud Addon

Use the following in your scorehud.yml (ScoreHud must be downloaded for this feature).

TagDescription
{scorehudx.prisonrank}Displays the players current prison rank.
{scorehudx.prisonprestige}Displays the players current prestige.
{scorehudx.prisonrequiredblocks}Displays the number of blocks players need to mine to be able to prestige.
{scorehudx.prisonrequiredrank}Displays the amount of money the player requires to rank up.
{scorehudx.prisonrequiredprestige}Displays the amount of money the player requires to prestige.

RankSystem Addon

Use the following in your config.yml's nametag and chat format (RankSystem must be downloaded for this feature).

PrefixDescription
{prison_rank}Displays the players current prison rank.
{prison_prestige}Displays the players current prestige.

API

To obtain an instance of this plugin's main class:

use snare\BetterPrisons\BetterPrisons;

$instance = BetterPrisons::getBetterPrisons();

Various methods can be found below:

$manager = $instance->getDataSessionManager();

$session = $manager->getDataSession(string $name);

$rank = $session->getRank();

$prestige = $session->getPrestige();

$blocksBroken = $session->getBlocksBroken();

Setup

  • If you wish to use the block requirement per prestige feature, ensure all world names which you wish block breaking to count towards the target are named solely as a single letter, I.E: Mine E is in the world 'e'.
  • If the ScoreHud bugs out, restart your server, currently I do not understand why this occurs.

Support

Reach out on discord snare_gale if having any issues or if you need help with configuration.

Details

Version: 1.0.0

Downloads: 509

Updated: 8/27/2024

Supported API versions: 5.3.0 to 5.27.1

Categories: Minigame, API plugins, Miscellaneous, Fun, Economy, Mechanics, Chat-Related, General

License: GPL-3.0

Producers

Collaborator