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.
Is there anyway I can remove someones prefix/suffix while they are offline? The way my server uses this plugin requires this ability.
Even a command like /spr p u offline:{UUID}, which would search the config for that UUID and clear it, would be nice to have.
Yes, you could go into the I believe the last folder in the simple prefix.jar
and that's where you can find all player names, you can just remove their names there, just don't mess it up. :D
@JaguarIsOnYoutube
Simply change the format value under Templates from:
'<[time] [world] [prefix][name][suffix]> '
to something like:
'<[prefix][name][suffix]> '
100% Working with bukkit 1.8.8 error free !
This plugin works fine with Bukkit 1.8.8 no errors, easy setup and commands! Thanks
Could someone send me a link or a dm of the config without day or world?
thanks alot ive been trying for a while and cant do it
For some reason, after using the plugin once, (Using the latest 1.8 build because my server is 1.8.8) it didn't run on the server any more. When I did /pl, all the plugins were green. When I did /spr, it said do /help ( I know. I know what /help does. -.- ) So seems like the file corrupts after 1 use?
PLEASE INFO ABOUT THIS
I remember when Uberminecraft used to use this it is awesome!
Hello, I was wondering if color permissions could be added e.g simpleprefix.color.c would make the players chat color red? If so that would be great, thanks.
@ayovandera
If you grant them the permission simpleprefix.command.editOwn, they'll be able to use the command "/spr p [prefix]" to set their own prefixes. There is currently no GUI for this; perhaps you could use a separate plugin for that.
Hello by any chance can you add a gui where players can change there prefix for 1.8
@SilentBlaze357
You simply turn on the multiPrefix option, and give the player the necessary permissions for each of the prefixes (that is, simpleprefix.<group name>).
You may also want to use tiers, in which case I suggest you read the Configuration page.
@Gerolmedlp
Simple Prefix already makes use of the player's display names, meaning that it works well with most nickname plugins (including Essential's /nick).
Me again :D you might want to add a new variable the Show name. This wouldnt just be the normal Name but it would probably alow to show the changed Name if a plugin changed it Example: NickNamer
Can you add a short tutorial on how to add multiple prefixes. like 3+ I am working on a Prison server and want to showcase "[Rank][Staff][Donor]Name"
@meneertje_floris
@Gerolmedlp
I've uploaded an update (v2.5.1)
@All
The new version has an option to use usernames instead of UUIDs for user prefixes and suffixes. This means offline mode servers can now use Simple Prefix, assuming that they have in-game authentication plugins so that people stick with the same usernames.
This is an error code i get when running the plugin for the First time on spigot 1.10 im using the latest plugin version: [18:29:56 ERROR]: Could not load 'plugins/Simple-Prefix (3).jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/flabaliki/simpleprefix/SimplePrefix : Unsupported major.minor version 52.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) [spigot.jar:git-Spigot-c3e4052-1953f52] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) [spigot.jar:git-Spigot-c3e4052-1953f52] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot.jar:git-Spigot-c3e4052-1953f52] at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugins(CraftServer.java:297) [spigot.jar:git-Spigot-c3e4052-1953f52] at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:202) [spigot.jar:git-Spigot-c3e4052-1953f52] at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:539) [spigot.jar:git-Spigot-c3e4052-1953f52] at java.lang.Thread.run(Thread.java:745) [?:1.7.0_101] Caused by: java.lang.UnsupportedClassVersionError: com/flabaliki/simpleprefix/SimplePrefix : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) [?:1.7.0_101] at java.lang.ClassLoader.defineClass(ClassLoader.java:803) [?:1.7.0_101] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [?:1.7.0_101] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) [?:1.7.0_101] at java.net.URLClassLoader.access$100(URLClassLoader.java:71) [?:1.7.0_101] at java.net.URLClassLoader$1.run(URLClassLoader.java:361) [?:1.7.0_101] at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [?:1.7.0_101] at java.security.AccessController.doPrivileged(Native Method) [?:1.7.0_101] at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [?:1.7.0_101] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) [spigot.jar:git-Spigot-c3e4052-1953f52] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) [spigot.jar:git-Spigot-c3e4052-1953f52] at java.lang.ClassLoader.loadClass(ClassLoader.java:425) [?:1.7.0_101] at java.lang.ClassLoader.loadClass(ClassLoader.java:358) [?:1.7.0_101] at java.lang.Class.forName0(Native Method) [?:1.7.0_101] at java.lang.Class.forName(Class.java:278) [?:1.7.0_101] at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) [spigot.jar:git-Spigot-c3e4052-1953f52] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) [spigot.jar:git-Spigot-c3e4052-1953f52] ... 6 more
@meneertje_floris
It seems like I compiled the plugin with Java 1.8, but you're using an older version. I'll upload a fix in the next few days.
I have problems with this plugin on 1.10. It gives errors when loading. I am using Craftbukkit 1.10.2, here is the log: http://pastebin.com/A9nnQv1W
@Emandubs
You want to change the format option in the config so that instead of '<[time] [world] [prefix][name][suffix]> ' it shows '<[world] [prefix][name][suffix]> '
@roy1267
If you want a space after everyone's prefix, you can do that from the format. If you want it to be specific to some prefixes, you'll have to set the prefix from the config instead of the command, as the command won't support prefixes with spaces.
@roy1267
Yes, I did look at it however I could not make p's and q's of the info on there: command?
Anyway to create a space after the prefix ?