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 May 7, 2013@Clarinoman
Works fine on 1.5.2 I'm running it on my 1.5.2 server.
-
View User Profile
-
Send Message
Posted May 6, 2013Add 1.5.2 support please !
-
View User Profile
-
Send Message
Posted May 4, 2013Despite the fact that this is MIT-licensed, there's no public repo. Here's a repo I made and mavenized the plugin:
https://github.com/vemacs/SimplePrefix
Flabaliki: consider using maven for building. We don't need to see your .classpath or .project.
For others, just run mvn package to build.
-
View User Profile
-
Send Message
Posted Apr 14, 2013my config.yml is not the same Template: format: '<[time] [world] [prefix][name][suffix]> ' time: '[h:mm aa]' multiPrefix: false Worlds: world: nickname: '&e[World]&f' Group: example: prefix: '&a[Example]&f' suffix: '' User: Flabaliki: prefix: '&c[Who?]&f' suffix: ''
-
View User Profile
-
Send Message
Posted Apr 10, 2013Is it a permission for permissionEX that i can use?
-
View User Profile
-
Send Message
Posted Apr 4, 2013Is there a way to move the personal prefixes to the front of the line rather than have them show up last in the prefix list? As owner of the server, I'd like my Owner tag to be first in the list rather my normal player tag.
-
View User Profile
-
Send Message
Posted Apr 2, 2013Hi, every time I've used the /spr s command, it edits my prefix, not my suffix. Is there a crossed wire there somewhere?
Thanks
-
View User Profile
-
Send Message
Posted Apr 2, 2013@Minonos
Ah yes, I forgot about the "aa" bit being for AM/PM. ^.^ Glad it worked out for you.
-
View User Profile
-
Send Message
Posted Apr 2, 2013@sakura_blades
Thanks!
It works like this: [HH:mm]
You don't need the 'aa' because it's for the AM/PM.
-
View User Profile
-
Send Message
Posted Apr 2, 2013@Minonos
I'm not sure if this will work but it's worth a shot. Try changing this:
time: '[h:mm aa]'
To this:
time: '[HH:mm aa]'
Bukkit reads the lower case h as a 12 hour format and the upper case H as a 24 hour format. That might do what you need it to.
-
View User Profile
-
Send Message
Posted Apr 2, 2013Is it possible to display the time not like
01:37 PM
but like
13:37
?
It's normal in Europe to display the time like this, so it would be a great feature.
-
View User Profile
-
Send Message
Posted Mar 30, 2013@xpopy
No, I know that much.. I did that.
I'm talking about PermBukkit applying every group below me to my User info in the PermBukkit config file.... I don't want to have (Player, every-donator, both ranks of staff, Owner) When my donators are their own tier and rank according to donation. And Staff, ranks up through Mod and Admin, so I have both of those because Owner inherits Admin and Admin inherits Mod...) -.-
I did get Personal Tags working.... -.- Not that I can figure out how to get them to display properly... I wanted them to be my first tag in the list, not the last. My donator ranks and my staff ranks and a mixture of the two have their tags display properly. [staff][donator][player] I have [player][personal]
<;
-
View User Profile
-
Send Message
Posted Mar 29, 2013@sakura_blades
Are you talking about the Simple-Prefix groups when inheriting from other permission groups? Because that is how it is meant to work. Just set the Simple-Prefix group that you are inheriting, to false in the permission group you don't want it in.
-
View User Profile
-
Send Message
Posted Mar 29, 2013@xpopy
I gave up on bperms... went with permbukkit... It's working now, but people with only one group are getting double prefix of the same group... How do I fix this? >< It was fine just a second ago!
EDIT: So I can't reload SPR or it'll add another prefix to players... Got it! XD
Also, I can't get personal tags to show up either... This is very frustrating
EDIT: Btw, PermBukkit seems kinda "retarded" in the sense that it adds the groups I'm inheriting to my user information... bPerms didn't do that... ><;
-
View User Profile
-
Send Message
Posted Mar 29, 2013@sakura_blades
You should try test another permission plugin, if you still want multiple prefixes, else I cannot help you more.
-
View User Profile
-
Send Message
Posted Mar 28, 2013@xpopy
No I have not, I like bperms and up until now I have no other issues with it at all.. i'd really rather not use another permissions plugin if I can help it.
-
View User Profile
-
Send Message
Posted Mar 28, 2013@sakura_blades
I am not sure what is actually causing your problem, but have you tried another permission plugin?
-
View User Profile
-
Send Message
Posted Mar 28, 2013@xpopy
Exactly! I know simple prefix is working because I still get the time-stamps... But it's not reading the prefixes from the Simple Prefix config file no matter what I do... I've made sure to add the right nodes, all the Prefixes are set up for every group just like it says to in the config example...
I don't understand. Unless simple prefix is incapable of "over-riding" bperms prefix information or lack there-of... x.x
-
View User Profile
-
Send Message
Posted Mar 28, 2013@sakura_blades
So, just want to get this right.. Your problem is that you want multiple prefixes, but they don't show up?
I did a clean reinstall to test it, newest version of simple-prefix, craftbukkit, and PermissionBukkit (since that is what I use anyway).
2 prefixes apperead, proof: http://i.imgur.com/00PgwsA.png
-
View User Profile
-
Send Message
Posted Mar 28, 2013This is probably a stupid question... But where is the link