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.
@DFerocious
I am when I use it. The text is in cyan or something.
@Vynarus
you have to be in game to use the commands
Whenever I use any of the commands (i,e. /spr p [admin]) it just gives me
"[Simple Prefix Commands]
More help: http://dev.bukkit.org/server-mods/simple-prefix/"
and doesn't add the prefix for my name. Any help?
Also the simple prefix don't work with inheritance ladder in Permissions Ex. If inheritance is on, it always keep the old prefix. Thanks for helping!
I love this plugin, but i'm having trouble getting it to work with Pex Chat Manager. When i disable Pex Chat Manager, the prefix seems to work fine, but when I turn Pex Chat Manager on, there's no prefix. Please let me know the format to get it to work.
Here's my Pex Chat Manager config file
enable: true message-format: '%prefix%displayname%suffix: %message' global-message-format: '&7[Yell] %prefix%displayname%suffix: %message' ranged-mode: true chat-range: 75.0
whenever i do /spr colours it never tells me the color codes.... please help I need the color codes for Green, Red, Cyan, and Purple
this plugin breaks like once installed (yes essentials fixed properly) and itry like /spr or something and all u get is the link to the website... and it doesnt always change names with permissions and when are you going to change to 1.2.5-R4.0
I found this plugin to be really useful. The only problem I got is that /spr s [suffix] actually creates a prefix. So right now I can only add suffixes within the configuration file. What causes this problem?
@typhoonwes79
Hi Wes :P Found You
@CrazyDavid14K Not sure, never tested.
@typhoonwes79 Have you entered nick names for the worlds, perhaps?
@TheNoobLol Have you given yourself permission to use the command, you need the permission nodes to be able to use any of the commands except for "/spr help".
@thedeadlytao I can do that easily when I'm free of the copious amount of work I have right now.
I love this plugin but... ==== I'm having issues finding a good chat manager that will show colors to go with it. I mean like when you press tab the colors will show up. Any suggestions?
I greatly appreciate the light weight nature of this plugin. Using mChat with PermissionsBukkit was... a nightmare. Once some Vault plugin was mentioned, which supposedly makes things simpler by adding a middleman to my server, I decided it's not worth my time. I'll just look for something that works. This does just that.
That said, I would request just one more feature: user nicknames. I understand a world can be renamed, so may we rename our users to allow them the freedom of requesting name changes or permanent but different names on our server? I certainly would like to change my name now that I own a server, also I could use the anonymity when interacting with my users.
Just a humble request; this would make the plugin complete.
Does this support Group Maneger?
@Meyerflyer
Restart the server, u mean stop it then start it again. How do you restart? and also there is no colors, but the '-' after my name changes the color to the one i want the rank to be, and the rank is grey :(
on the log it says: '[Warning] Task of 'simple prefix' generated an exception java.lang.NullPointerExcetion
@TheNoobLol
Mine did the same thing, but I just restart my server and it worked! =)
I don't think mine works, i try /spr nothing then i try /spr help same thing i tried ever command up there and it wouldn't work i got craft bukkit 1.2.5 R-03 (latest version)
PLZ HELP !!!!!!!!!!!!!!
20:32:04 [SEVERE] Could not pass event PlayerChatEvent to Simple Prefix
org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:459) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:786)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7 8) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at com.flabaliki.simpleprefix.SimplePrefix.onPlayerChat(SimplePrefix.jav a:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:301) ... 11 more 20:32:04 [INFO] <Kumei> a ==
WTF? I did everything! watched the tut 10 times...... can you fix this?
can you make a command something like !punch in and if your in a group it will remove the world name and replace with group name and then with !punch out it will remove you from group and put the world name back?
I just updated the plugin. Now people don't have the world name in there names. i just get [] Anything i might be doing wrong?
Thanks.
Can we use PermissionsEx ? For This plugin ?