PrefixesPro

Advanced prefix system for PocketMine-MP




โœจ PrefixesPro

Advanced prefix system for PocketMine-MP. Create, assign, and manage prefixes with categories, expiration times, GUI menus, and much more!


๐Ÿ’ก 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


Details

Version: 1.0.0

Downloads: 32

Updated: 6/2/2026

Supported API versions: 5.0.0 to 5.36.0

Categories: General, Chat-Related, Informational, Admin Tools

License: MIT

Producers

Collaborator