Simple Prefix

Logo

Simple Prefix Logo


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, inside of a yml config file. You apply prefixes and suffixes per user or group in the /Simple Prefix/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. You are able to achieve the following ingame:

  • [Admin] Flabaliki: my message here

Or even, just completely mix and match the template to get the look you want.

Developer API is available to those who wish to access prefixes and suffixes and use them within their own plugin. Click "Metadata" above.

That is all this plugin does, just a lightweight plugin for quickly getting your prefixes and suffixes to work, however you want.


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

Installation:

  1. Place Simple Prefix.jar into your plugins folder
  2. Restart or reload your server
  3. Edit your config.yml (see here for info)
Please carefully read the Configuration page!

Youtube Video:

This video is very outdated. Could we get someone to make a new video that demonstrates what the plugin does, as well as how to set it up?


Commands and Permissions:

CommandFunctionPermission
/spr helpDisplays helpDepends on other permissions
/spr coloursDisplays all colour codessimpleprefix.command.colors
/spr p g <group> [prefix]Add/remove prefix from specified groupsimpleprefix.command.editGroups
/spr s g <group> [suffix]Add/remove suffix from specified groupsimpleprefix.command.editGroups
/spr p u <user> [prefix]Add/remove prefix from a single playersimpleprefix.command.editIndividual
/spr s u <user> [suffix]Add/remove suffix from a single playersimpleprefix.command.editIndividual
/spr p [prefix]Add/remove prefix from yourselfsimpleprefix.command.editOwn
/spr s [suffix]Add/remove suffix from yourselfsimpleprefix.command.editOwn
/spr w <world> [nickname]Add/remove a world nicknamesimpleprefix.command.editWorld
/spr reloadReloads config from filesimpleprefix.command.reload
Permission for all commandssimpleprefix.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.


Upcoming Features:

  • MySQL support
  • Timezones

What people say about Simple Prefix:

"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.

As of version 2.3.2, this plugin connects to "api.mojang.com" when necessary to check for player UUIDs.


If you need help with something, want to report a problem or make a suggestion, you should either make a comment here or send a PM to BaranCODE.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of fafler fafler Oct 20, 2014 at 17:50 UTC - 0 likes

    [19:43:40] [Craft Scheduler Thread - 3409/WARN]: Exception while running UUIDFetcher [19:43:40] [Craft Scheduler Thread - 3409/WARN]: java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.mojang.com/profiles/minecraft [19:43:40] [Craft Scheduler Thread - 3409/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1838) [19:43:40] [Craft Scheduler Thread - 3409/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439) [19:43:40] [Craft Scheduler Thread - 3409/WARN]: at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) [19:43:40] [Craft Scheduler Thread - 3409/WARN]: at com.flabaliki.simpleprefix.UUIDFetcher.call(UUIDFetcher.java:39) [19:43:40] [Craft Scheduler Thread - 3409/WARN]: at com.flabaliki.simpleprefix.SprCommand$1.run(SprCommand.java:275) [19:43:40] [Craft Scheduler Thread - 3409/WARN]: at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:67) [19:43:40] [Craft Scheduler Thread - 3409/WARN]: at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) [19:43:40] [Craft Scheduler Thread - 3409/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [19:43:40] [Craft Scheduler Thread - 3409/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [19:43:40] [Craft Scheduler Thread - 3409/WARN]: at java.lang.Thread.run(Thread.java:745) [19:43:40] [Craft Scheduler Thread - 3409/WARN]: Exception in thread "Craft Scheduler Thread - 3409" [19:43:40] [Craft Scheduler Thread - 3409/WARN]: org.apache.commons.lang.UnhandledException: Plugin SimplePrefix v2.3.4 generated an exception while executing task 108918 at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException

    [19:43:41] [Craft Scheduler Thread - 3417/WARN]: Exception in thread "Craft Scheduler Thread - 3417" [19:43:41] [Craft Scheduler Thread - 3417/WARN]: org.apache.commons.lang.UnhandledException: Plugin SimplePrefix v2.3.4 generated an exception while executing task 108927 at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) at java.util.ArrayList$Itr.next(ArrayList.java:851) at org.yaml.snakeyaml.serializer.Serializer.anchorNode(Serializer.java:142) at org.yaml.snakeyaml.serializer.Serializer.anchorNode(Serializer.java:146) at org.yaml.snakeyaml.serializer.Serializer.serialize(Serializer.java:108) at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:272) at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:262) at org.yaml.snakeyaml.Yaml.dumpAll(Yaml.java:234) at org.yaml.snakeyaml.Yaml.dump(Yaml.java:209) at org.bukkit.configuration.file.YamlConfiguration.saveToString(YamlConfiguration.java:38) at org.bukkit.configuration.file.FileConfiguration.save(FileConfiguration.java:57) at org.bukkit.plugin.java.JavaPlugin.saveConfig(JavaPlugin.java:162) at com.flabaliki.simpleprefix.Config.setPrefixSuffix(Config.java:221) at com.flabaliki.simpleprefix.Config.setPrefix(Config.java:203) at com.flabaliki.simpleprefix.SprCommand$1.run(SprCommand.java:280) at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:67) at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more

    I'm using this old and otherwise UUID free Spigot build: This server is running CraftBukkit version git-Spigot-1.7.2-R0.3-122-gb58e277 (MC: 1.7.2) (Implementing API version 1.7.2-R0.4-SNAPSHOT)

    Sometimes it runs for hours without anything, but other times it spews those errors out every few seconds. It's not dependent on playercount or serverload.

    Thanks a lot for looking into it.

  • Avatar of BaranCODE BaranCODE Oct 20, 2014 at 13:32 UTC - 0 likes

    @fafler: Go

    Could you paste the whole error message? I'll make a fix for this as soon as possible.

    @JamaicaXmon0089: Go

    Please read the page about Configuration.

  • Avatar of fafler fafler Oct 20, 2014 at 06:49 UTC - 0 likes

    I'm getting more and more of these: Exception while running UUIDFetcher

    Is the only solution to downgrade to 2.2.1?

  • Avatar of JamaicaXmon0089 JamaicaXmon0089 Oct 15, 2014 at 00:55 UTC - 0 likes

    How do I make the time before the prefix go away?

  • Avatar of BaranCODE BaranCODE Sep 07, 2014 at 05:01 UTC - 0 likes

    @Iwitrag: Go

    Simple Prefix is designed to be your only prefix/chat management plugin, not a secondary one. You should either use this, or EssentialsChat, but not both.

    About the Factions prefix, I'll look into that.

  • Avatar of Iwitrag Iwitrag Sep 06, 2014 at 14:50 UTC - 0 likes

    When I use this plugin, it totally breaks my chat - it takes control over essentials chat plugin (which is not what I want) and faction prefixes doesn't show at all...

    All I need to do is: assign another prefix before player's nick if that player has defined permission.

    So it will look like this:

    [Faction prefix] [SECOND PREFIX] [first prefix] nick > text
    Prefix added by this plugin should be that marked with bold letters.

  • Avatar of BaranCODE BaranCODE Aug 28, 2014 at 10:34 UTC - 0 likes

    Guys, the current video is very outdated. Could we get someone to make a new video that demonstrates what the plugin does, as well as how to set it up?

  • Avatar of BaranCODE BaranCODE Aug 28, 2014 at 10:17 UTC - 0 likes

    The v2.3.4 update with the Vault chat support has finally been approved!

  • Avatar of BaranCODE BaranCODE Aug 25, 2014 at 22:36 UTC - 0 likes

    @bobthedark1: Go

    What do you mean? If you're saying that OPs have permissions for all the prefixes, and that causes them to have the wrong prefix (like a player prefix), you just have to get the order straight:

    "If the user has multiple nodes, for group prefix or suffixes, the top most one in the config.yml file will be used. For example, if a user has both; simpleprefix.owner and simpleprefix.mod, then the owner group should be placed above the mod group, in the config file. This will make the owner group more important than the mod group, and owners won't get the mod prefix."

    If you need to deny any specific permissions from OPs, just do so with you permissions plugin.

  • Avatar of bobthedark1 bobthedark1 Aug 25, 2014 at 21:36 UTC - 0 likes

    Hello, Currently ops have the max ranks for every prefix. Could you change this?

Facts

Date created
Aug 25, 2011
Categories
Last update
Aug 21, 2014
Development stage
Mature
License
Public Domain
Curse link
Simple Prefix
Downloads
191,410
Recent files
  • R: v2.3.4 for CB 1.7.9-R0.1 Aug 21, 2014
  • R: v2.3.3 for CB 1.7.9-R0.1 Jun 25, 2014
  • R: v2.3.2 for CB 1.7.9-R0.1 Jun 14, 2014
  • R: v2.3.1 for CB 1.7.9-R0.1 Jun 09, 2014
  • R: v2.3 for CB 1.7.9-R0.1 Jun 04, 2014

Authors