PrefixesPro

by AndresD3us

Advanced prefix system for PocketMine-MP

version 1.0.0

9 downloads ยท 0 stars

Published 9 Jul 2026 from AndresD3us/PrefixesPro at 40b5b9cf8ff28fd99be93a2e47a2d07f85e4b9f8, after moderator review.

Plugin description

๐Ÿ’ก Features

  • โœ… Prefixes with color & formatting support (& color codes)
  • ๐Ÿท๏ธ Two prefix categories: Free (anyone can activate) and Pay (admin-assigned)
  • โณ Expiration system โ€” assign prefixes with a duration (30d, 1h, 30m, etc.)
  • ๐Ÿ›ก๏ธ Permission-based access control
  • ๐Ÿง  Per-player session management (active prefix, owned prefixes)
  • ๐Ÿ“ฆ Full GUI interface via FormAPI for prefix selection and creation
  • ๐Ÿ” Auto-save system with configurable interval
  • ๐Ÿท๏ธ Nametag update support (optional)
  • ๐Ÿ“ Fully customizable chat format with {prefix}, {name}, and {message} placeholders
  • โšก Lightweight and optimized for PocketMine-MP API 5.x

๐Ÿ› ๏ธ Installation

  1. ๐Ÿ“ฅ Download the .phar file
  2. ๐Ÿ”Œ Drag it into your server's /plugins/ folder
  3. ๐Ÿš€ Restart your server
  4. โœ… Use /prefixes in-game to open the GUI menu

๐Ÿ“š Commands

CommandDescriptionPermission
/prefixesOpens the prefix GUI menuprefixespro.gui
/prefix helpShows the list of available commandsprefixespro.command.help
/prefix createOpens a form to create a new prefixprefixespro.command.create
/prefix delete <name>Deletes a prefix from the serverprefixespro.command.delete
/prefix add <player> <prefix> [time]Assigns a prefix to a player (with optional duration)prefixespro.command.add
/prefix remove <player> <prefix>Removes a prefix from a playerprefixespro.command.remove
/prefix listLists all registered prefixesprefixespro.command.list
/prefix reloadReloads config, prefixes, sessions, and messagesprefixespro.command.reload

๐Ÿ’ก Most subcommands have aliases: add โ†’ give, assign | remove โ†’ take | create โ†’ new | list โ†’ all


โณ Time Format

When assigning prefixes with /prefix add, you can specify an optional duration:

FormatMeaning
30s30 seconds
10m10 minutes
2h2 hours
7d7 days
1w1 week
1d12hCombined durations
(no argument)Permanent

Example: /prefix add Steve VIP 30d โ€” assigns the prefix VIP to Steve for 30 days.


๐Ÿท๏ธ Prefix Categories

Prefixes have two categories that control how players can obtain them:

  • Free โ€” any player with the right permission node can activate it from the GUI (/prefixes).
  • Pay โ€” must be manually assigned by an admin using /prefix add. Ideal for donor or purchased ranks.

You can set the category when creating a prefix via the in-game form (/prefix create).


๐Ÿ”‘ Permissions

PermissionDefaultDescription
prefixespro.commandtrueAllows using /prefix
prefixespro.command.helptrueView command help
prefixespro.guitrueOpen the prefix GUI menu
prefixespro.command.createopCreate a new prefix
prefixespro.command.deleteopDelete a prefix
prefixespro.command.addopAssign a prefix to a player
prefixespro.command.removeopRemove a prefix from a player
prefixespro.command.listopView all registered prefixes
prefixespro.command.reloadopReload the plugin

โš™๏ธ Configuration

# config.yml

# Maximum length of the prefix name (without colors)
prefix-max-name-length: 10

# Maximum length of the prefix format (with color codes)
prefix-max-format-length: 30

# Time (in seconds) between each auto-save
autosave-interval: 300

# Chat format โ€” placeholders: {prefix} {name} {message}
chat-format: "{prefix} ยง7{name}ยงr: {message}"

# Apply the active prefix to the player's nametag
update-nametag: false

๐Ÿ“ File Structure

plugin_data/
โ””โ”€โ”€ PrefixesPro/
    โ”œโ”€โ”€ prefixes/
    โ”‚   โ””โ”€โ”€ <prefix>.yml
    โ”œโ”€โ”€ sessions/
    โ”‚   โ””โ”€โ”€ <uuid>.yml
    โ”œโ”€โ”€ messages.yml
    โ””โ”€โ”€ config.yml

๐Ÿ“– License

This plugin is open source and licensed under the MIT License. Feel free to fork, contribute, or open issues and pull requests.


Made with โค๏ธ by AndresD3us


Installing it

Drop the phar into plugins/ and restart the server. If the API version below does not match your server, the plugin will refuse to load, which is the check working as intended.

Installing plugins

Releases

VersionAPIBuilt
1.0.05.0.09 Jul 2026 ยท 56 KB

SHA-256 of 1.0.08f9bdb9a02e58ddc144340f557937092331d79af7970270efbb1f7f0c57a04b0

Reviewed by a moderator before publishing. Built from AndresD3us/PrefixesPro at 40b5b9cf8ff28fd99be93a2e47a2d07f85e4b9f8. Nobody reviews plugin code here: read the source before running it on a server you care about.

Comments

Sign in with GitHub to star this plugin or leave a comment.

No comments yet.