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 BaranCODE BaranCODE Oct 29, 2014 at 12:11 UTC - 0 likes

    @RabbitBoyz: Go

    Oh my, you're actually, literally, typing this aren't you: "spr p u <name> <prefix>".

    Instead of <name> you're supposed to write the player's name, and instead of <prefix> you're supposed to write the prefix you'd like. Placeholders like these are commonly used in most plugins.

  • Avatar of RabbitBoyz RabbitBoyz Oct 28, 2014 at 20:02 UTC - 0 likes

    @BaranCODE: Go

    Oh, I see. Thank you for taking the time to answer to my problems. As for the first, no messages come from the console except the message saying prefix for user <name> set to: <prefix>, and in the config it is still 'null': etc. It doesn't seem to make a difference if the user receiving the prefix is opped or not.

  • Avatar of BaranCODE BaranCODE Oct 28, 2014 at 09:19 UTC - 0 likes

    @RabbitBoyz: Go

    • For the first, do you see any errors on the console?
    • For the second, that's on purpose. When the player is OP, he/she has permissions for all the prefixes/suffixes; so if the multiPrefix/multiSuffix is disabled, as it can only show one prefix/suffix, it chooses the topmost one. This is further described on the Configuration page.
  • Avatar of RabbitBoyz RabbitBoyz Oct 27, 2014 at 01:31 UTC - 0 likes

    I'm having two problems with this plugin. First, setting user prefixes seems to not be working (using the /spr p u <name> <prefix> generates 'null': prefix: '<prefix>' in the config file under users but doesn't do anything in-game). Second, being an op makes your prefix the topmost group in the config. Using permissionsbukkit if that matters at all.

  • Avatar of BaranCODE BaranCODE Oct 25, 2014 at 18:11 UTC - 0 likes

    @DoubleXSeth: Go

    You should give your prefixes to user groups, so that the default group (in your permissions) gets your default prefix.

  • Avatar of DoubleXSeth DoubleXSeth Oct 25, 2014 at 15:42 UTC - 0 likes

    Is there a way to automatically give a new player a prefix when they join? I've set the default and user prefixes, but when a new player joins I have to set it for each player. How can I set it up automatically for On-Player-Join?

  • Avatar of BaranCODE BaranCODE Oct 25, 2014 at 11:25 UTC - 0 likes

    @fafler: Go

    Okay, glad you could figure it out.

  • Avatar of fafler fafler Oct 22, 2014 at 15:10 UTC - 0 likes

    Sorry BaranCODE, it was my own fault. I have a shell script that updates ranks by sending commands to the console, and a couple of playernames was malformed.

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

Facts

Date created
Aug 25, 2011
Categories
Last update
Aug 21, 2014
Development stage
Mature
License
Public Domain
Curse link
Simple Prefix
Downloads
192,520
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