SimplePrefix
![]()
Main | Configuration | Metadata | Source
Simple Prefix: Allows you to easily manage your chat with prefixes and suffixes.
This plugin uses prefixes and suffixes that are very easy to configure, from inside of an yml config file. You apply prefixes and suffixes per user or group in the /SimplePrefix/config.yml file.
Alternatively, Simple Prefix can be configured to get the prefixes and suffixes from Vault supported chat plugins instead (PermissionsEx, bPermissions, etc.)
You can fully alter the chat format. For example, you could achieve the following ingame:
- [Admin] Flabaliki: my message here
Or even, just completely mix and match the template to get the look you want.
A developer API is available to those who wish to access prefixes and suffixes and use them within their own plugin. Click "Metadata" above.
That's basically what this is, just a lightweight plugin for quickly getting your prefixes and suffixes to work, however you want.
Read the Configuration page for instructions on how to use the plugin.
Features:
- Uses permissions to apply prefixes and suffixes to selected users or groups.
- Alternatively, can use prefixes and suffixes from plugins supported by Vault.
- Formatting/color codes are fully supported.
- Configure the chat format to display however you want.
- Developer API for fetching prefixes and suffixes.
- Easy to use commands for adding / removing prefixes in game.
- Set prefixes and suffixes per group or per user.
- Plays nicely with Essentials /nick command.
- Option to allow multiple prefixes / suffixes, and a configurable separator which is placed between them to separate them.
- A prefix or suffix tier system (so that you can make multiple ranking ladders).
- UUID support
- Offline mode server support (using usernames instead of UUIDs)
- Factions chat tags support (read our Configuration page)
Installation:
- Place Simple Prefix.jar into your plugins folder
- Restart or reload your server
- Edit your config.yml (see here for info)
Please carefully read the Configuration page!
Youtube Video:
A simple tutorial by Otaku Geeks that will help you get started:
And another video on the basics of setting up the config.
Here is a German video about the plugin.
Commands and Permissions:
| Command | Function | Permission |
|---|---|---|
| /spr help | Displays help | Depends on other permissions |
| /spr colours | Displays all colour codes | simpleprefix.command.colors |
| /spr p g <group> [prefix] | Add/remove prefix from specified group | simpleprefix.command.editGroups |
| /spr s g <group> [suffix] | Add/remove suffix from specified group | simpleprefix.command.editGroups |
| /spr p u <user> [prefix] | Add/remove prefix from a single player | simpleprefix.command.editIndividual |
| /spr s u <user> [suffix] | Add/remove suffix from a single player | simpleprefix.command.editIndividual |
| /spr p [prefix] | Add/remove prefix from yourself | simpleprefix.command.editOwn |
| /spr s [suffix] | Add/remove suffix from yourself | simpleprefix.command.editOwn |
| /spr w <world> [nickname] | Add/remove a world nickname | simpleprefix.command.editWorld |
| /spr reload | Reloads config from file | simpleprefix.command.reload |
| Permission for all commands | simpleprefix.command.* |
To remove a prefix or suffix, leave [prefix] and [suffix] out of the command
Use the permission simpleprefix.<group name> to add a person to a group.
What people say about Simple Prefix:
"This was exactly what I was looking for! Simple and straight forward to use ... I think it took me about 5 minutes after reading over the directions to get it setup...and my users were instantly thankful and excited about their cool new fancy prefixes. Thanks for your efforts!" - GrumblyOldBear
"You're the best! Prior to simplePrefix I spent weeks looking for something that would do prefixes by permissions, and now that I find it, I get functionality AND quick support, as well as new features implemented! <3" - octoshrimpy
"Epic plugin!" - Bammerbom
"Great plugin! :)" - ThisUsernameIsMine
"oh thank god youre updating this...i love the concept of multiple prefixes. its what ive been looking for for a LOOONNNGGG time. im so glad i found this one and itd be awesome to have it updated" - SatansDaughter66 (Written when the 2.3 update was announced)
"Been using this for quite some time, and it's always served our needs well... Thanks for making an awesome plugin! - Islid
As of version 2.3.1, this plugin uses an automatic updater to check if you are running the latest version, and if not, it downloads the latest version. To disable this please set "Auto-Update" to "false" in the config.yml file.
-
View User Profile
-
Send Message
Posted Jun 11, 2014@DKstranger
They are probably conflicting. Also, the multiplePrefix/Suffix thing is only for having multiple prefixes/suffixes from within Simple Prefix, it is not for prefixes/suffixes across plugins.
-
View User Profile
-
Send Message
Posted Jun 11, 2014@Levitheman515
Can you post the full error?
-
View User Profile
-
Send Message
Posted Jun 11, 2014It seems this plugin does not work for my server. I need suffix to work so that people can see their rank and see admins and stuff.
I have another plugin [SkillAPI] which is a class plugin and what not that gives a prefix for the player, but no suffix. I have Herochat, and i also have Essentials. ( i dont know if these plugins conflict?)
But in the confic i have multiple suffix and prefix set to true so other plugins should not matter? You can take a look at my permissions yml and simpleprefix yml.
I use bukkit version 1.7.5
i use the lastest version of permissions and simpleprefix
groups:
default:
permissions:
permissions.build false
simpleprefix.dwarf true
admin:
permissions:
permissions.*: true
simpleprefix.admin true
inheritance:
- user
Simpleprefix confic.yml none of it works, neither the time the world or the suffix. Can you please help me out and tell me if i have done something wrong?
Template:
format: '<[time] [world] [prefix][name][suffix]> '
time: '[h:mm aa]'
multiPrefix: true
multiPrefixSeparator: '&r, '
multiSuffix: true
multiSuffixSeparator: '&r-'
Worlds:
world:
nickname: '&e[World]&f'
Group:
admin:
prefix: ''
suffix: '&a[admin]&f'
User:
069a79f4-44e9-4726-a5be-fca90e38aaf5:
prefix: '&c[Notch]&f'
suffix: ''
Version: '2.3'
-
View User Profile
-
Send Message
Posted Jun 11, 2014So this seems to have broken because Mojang is migrating users to the new UUID system.
"Could not pass event AsyncPlayerPreLoginEvent to SimplePrefix v2.3"
-
View User Profile
-
Send Message
Posted Jun 11, 2014@BaranCODE
You're right.... if only i updated my post before you replied :D
Great plugin! :-)
-
View User Profile
-
Send Message
Posted Jun 11, 2014@ThisUsernameIsMine
Are you giving the correct permissions to everyone? Remember, when you create a group in Simple Prefix, you need to give the simpleprefix.<group name> permission to that permissions group or user as well. So what I'm saying is that Simple Prefix groups and permissions groups don't synchronize, you assign them with permissions.
-
View User Profile
-
Send Message
Posted Jun 10, 2014@BaranCODE
Well, all the players except i don't get a group/rank prefix =/
in-game screenie: http://i.imgur.com/dyl9SZP.png
my config: http://dev.bukkit.org/paste/10216/
-
View User Profile
-
Send Message
Posted Jun 9, 2014@ThisUsernameIsMine
No, you only needed to swap it in 2.3. In 2.3.1, the topmost one is the most important one, so it overrides the others.
Also, don't use 2.3.1 yet, because the auto-updater will turn it back to 2.3, unless you disable that from the config.
-
View User Profile
-
Send Message
Posted Jun 9, 2014@BaranCODE
So the order in which you add the groups is important?
Because i downloaded 2.3.1, and when swapping the first/last groups the same problem occurs ;-)
Thanks though :-)
-
View User Profile
-
Send Message
Posted Jun 9, 2014@ThisUsernameIsMine
Okay, I'll look into that.
Also, I've uploaded v2.3.1 to fix the previous bug about the reversed order of prefixes/suffixes. Waiting to be approved.
-
View User Profile
-
Send Message
Posted Jun 9, 2014@BaranCODE
Ahh, no problem ;-)
I also noticed that all ranks except Owner miss the double colon in the suffix, while they are clearly visible in the config.
-
View User Profile
-
Send Message
Posted Jun 9, 2014@ThisUsernameIsMine
This is a bug. Although on this page, it says that when a person has permissions for multiple prefixes or suffixes, the topmost one in the config will be used, it is the opposite. The prefix or suffix at the bottom will override the ones that are above it. I will change this in the next update to avoid further confusion. Thanks for bringing this to my attention.
-
View User Profile
-
Send Message
Posted Jun 9, 2014Well, i have Essentials(GroupManager) and Vault but for some (silly) reason the ranks get the wrong suffix(colours).
I'm an OP and i seem to get the suffix(colour) of the lowest rank while that rank is not inherited by other ranks :S
my config:
-
View User Profile
-
Send Message
Posted Jun 6, 2014@jmankeener4403
By editing the template format option in the config. Just remove [time] variable from the format option.
-
View User Profile
-
Send Message
Posted Jun 6, 2014Thanks! Also, how do you remove time stamps?
-
View User Profile
-
Send Message
Posted Jun 6, 2014@jmankeener4403
Currently, each group you create in Simple Prefix has it's own permission (simpleprefix.<group name>) and you can give those permissions to your groups in PEX.
We will add support for using PEX's own prefix and suffix storage system later, but for now, you need to use permissions to give group prefixes and suffixes.
-
View User Profile
-
Send Message
Posted Jun 6, 2014Do the group prefixes work with PEX?
-
View User Profile
-
Send Message
Posted Jun 5, 2014@XxZangoranxX
Yes, those work. Unicode characters are supported.
-
View User Profile
-
Send Message
Posted Jun 4, 2014Does it support these 【】 and this ✇ ?
-
View User Profile
-
Send Message
Posted Jun 4, 2014The update has been uploaded; currently waiting to be approved.