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 Jul 4, 2014@eryknet
That may have happened if the server doesn't have internet access. Even if your server is in Offline mode, Simple Prefix will need internet access to work, because it uses UUID's to store player data.
-
View User Profile
-
Send Message
Posted Jul 4, 2014@LegoFarmer
The order that they're in, in the config, matters. You should put the Owner group at the top, then the Moderator group next, then the Civilian group, in your config file.
-
View User Profile
-
Send Message
Posted Jul 4, 2014[21:28:13 ERROR]: Could not pass event AsyncPlayerPreLoginEvent to SimplePrefix v2.3.3 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) [spigot-1.7.9-R0.3-SNAPSHOT.jar:git-Spigot-1521] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot-1.7.9-R0.3-SNAPSHOT.jar:git-Spigot-1521] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) [spigot-1.7.9-R0.3-SNAPSHOT.jar:git-Spigot-1521] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.7.9-R0.3-SNAPSHOT.jar:git-Spigot-1521] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot-1.7.9-R0.3-SNAPSHOT.jar:git-Spigot-1521] at net.minecraft.server.v1_7_R3.ThreadPlayerLookupUUID.fireLoginEvents(ThreadPlayerLookupUUID.java:79) [spigot-1.7.9-R0.3-SNAPSHOT.jar:git-Spigot-1521] at net.minecraft.server.v1_7_R3.ThreadPlayerLookupUUID.run(ThreadPlayerLookupUUID.java:32) [spigot-1.7.9-R0.3-SNAPSHOT.jar:git-Spigot-1521] Caused by: java.lang.NullPointerException at com.flabaliki.simpleprefix.SimplePrefix.onPreLogin(SimplePrefix.java:118) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_20-ea] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0_20-ea] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_20-ea] at java.lang.reflect.Method.invoke(Method.java:483) [?:1.8.0_20-ea] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) [spigot-1.7.9-R0.3-SNAPSHOT.jar:git-Spigot-1521] ... 6 more
Don't know what is it, please if you know fix it
-
View User Profile
-
Send Message
Posted Jul 3, 2014@Samistine
Sorry, I don't think we'll be giving the source code. However, you can ask me to add the feature, and I'll do it if it's a reasonable one.
-
View User Profile
-
Send Message
Posted Jul 3, 2014Source Code Please? I want to add some something
-
View User Profile
-
Send Message
Posted Jul 1, 2014@GhostSailor
Okay I'll add that.
-
View User Profile
-
Send Message
Posted Jul 1, 2014I would say a config option to set the time zone of the time would be nice.
-
View User Profile
-
Send Message
Posted Jun 30, 2014@wslauson
I'd suggest placing &r into the Template format option, in the appropriate place; I'm assuming it would be between the prefix and the name. That should reset the color codes after the prefix is finished, so it should be back to normal for the name. If that doesn't work, I probably can't help you any further. I don't know how your name plugin works. If it sets a custom display name for players, that should work; if it's applying the color manually, in some way, then the plugin could possibly conflict with Simple Prefix.
-
View User Profile
-
Send Message
Posted Jun 30, 2014@BaranCODE
BaranCODE,
Can you help me? I like your plugin very much, but need help with a problem. When I color my prefix, it colors my name the same color. That's obvious because of the formatting codes, but I use a different plugin for name colors. That plugin no longer works because of this issue. It seems that the plugin is overriding the name plugin (Colorme for reference). If I delete the [name] field from the config, the name doesn't show at all. If I use the &r code before the [name] field, the name changes to white and will not change any other color. Can you fix this?
Much appreciated!
wwslauson
-
View User Profile
-
Send Message
Posted Jun 29, 2014@ThisUsernameIsMine
Yes, it fully depends on UUIDs. I'm not planning to implement a fallback system.
And okay, thanks for reporting that bug.
-
View User Profile
-
Send Message
Posted Jun 28, 2014Is it correct that prefix/suffix doesn't work if the UUID couldn't be fetched?
Would've been nice if there was a (Essentials nick)name fallback ;-)
edit: when changing someone's suffix (v2.3.3) using /spr suffix playername actual_suffix, it changes their prefix :S (they can change their own suffix perfectly fine)
-
View User Profile
-
Send Message
Posted Jun 20, 2014@Nicklopez1056
http://dev.bukkit.org/bukkit-plugins/simple-prefix/files/
No. You could use the older versions. The 1.7.9 version probably won't work on 1.7.5
-
View User Profile
-
Send Message
Posted Jun 20, 2014Is there a download page, if so is there a 1.7.5 version?
-
View User Profile
-
Send Message
Posted Jun 18, 2014@Bammerbom
Yeah, will do.
-
View User Profile
-
Send Message
Posted Jun 18, 2014Epic plugin!
Please add support for Vault.
-
View User Profile
-
Send Message
Posted Jun 15, 2014@th3rang3r
I don't understand. If you're saying you want to remove the time and world from the prefix, you can do that by editing the Template format option in the config.yml
-
View User Profile
-
Send Message
Posted Jun 15, 2014Hello im having slight problems, example i want to remove worlds time prefix, and only have GROUPS prefix but i cant seem to get it to work? any premade file ?
-
View User Profile
-
Send Message
Posted Jun 13, 2014Version 2.3.1 has been released. The problem in version 2.3 where groups that were placed lower had more priority, instead of the other way around, has been fixed. It is back to normal; when a person has permissions for multiple groups, the topmost one will be used.
-
View User Profile
-
Send Message
Posted Jun 12, 2014@DKstranger
Well, first of all, I don't know how well Herochat and Simple Prefix will work together. They may conflict, they may not, I'm not sure. That may be what's causing your problem. If it is, then yes, you are "doomed".
However, I've also noticed something in your setup. You've created an admin group in simple prefix, and gave your admins the permission for it, so the suffix for that should work fine, if the plugins aren't conflicting. But, you've also given your default users the permission for a simple prefix group called dwarf, yet you haven't created a group like that in the simple prefix config. So I wouldn't be surprised if your admin suffix works, but the dwarf doesn't.
-
View User Profile
-
Send Message
Posted Jun 12, 2014@BaranCODE
Thank you for your reply, is there a way to solve this in any way?
Or am i doomed to not have this plugin working on my server?