By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.

OK, Don't show this again

Advanced prefix system for PocketMine-MP
version 1.0.0
Approved
Direct Download How to install?
1 Downloads / 1 Total
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

Command Description Permission
/prefixes Opens the prefix GUI menu prefixespro.gui
/prefix help Shows the list of available commands prefixespro.command.help
/prefix create Opens a form to create a new prefix prefixespro.command.create
/prefix delete <name> Deletes a prefix from the server prefixespro.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 player prefixespro.command.remove
/prefix list Lists all registered prefixes prefixespro.command.list
/prefix reload Reloads config, prefixes, sessions, and messages prefixespro.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:

Format Meaning
30s 30 seconds
10m 10 minutes
2h 2 hours
7d 7 days
1w 1 week
1d12h Combined 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

Permission Default Description
prefixespro.command true Allows using /prefix
prefixespro.command.help true View command help
prefixespro.gui true Open the prefix GUI menu
prefixespro.command.create op Create a new prefix
prefixespro.command.delete op Delete a prefix
prefixespro.command.add op Assign a prefix to a player
prefixespro.command.remove op Remove a prefix from a player
prefixespro.command.list op View all registered prefixes
prefixespro.command.reload op Reload 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


Supported API versions
5.0.0
->
5.36.0
Producers §
  • Collaborators:
    • @AndresD3us
License §
Categories:
General
Admin Tools
Informational
Chat-Related
Permissions
Manage entities
Database
Other files
Permissions
Commands

You can leave one review per plugin release, and delete or update your review at any time

/ 5
Loading...