[INACTIVE][CHAT] Prefixer v2.5.1 - Adds prefixes to users when they chat [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Valrix, Feb 19, 2011.

  1. Offline

    Valrix

    NOTICE:
    Prefixer has been moved into ColorMe and was taken over by another dev, to get it, GO HERE.

    Prefixer - The Easy Prefix Plugin:
    Version: v2.5.1

    Prefixer allows players to add a prefix to a player such as [Farmer], etc. right from the game. See the commands list below for examples on proper use.
    COMMANDS (open)
    /prefix list - Shows a list of allowed colors as their color
    /prefix <prefix> - Changes your prefix. Color code optional and mixed into prefix.
    /prefix [prefix] - Changes another player's prefix.
    /prefix -r [name, name2...] - Removes your/listed player's prefix
    Examples:
    /prefix &4Admin = Admin <Valrix>
    /prefix -r = <Valrix>
    /prefix -r valrix = <Valrix>
    /prefix &5The&4Admin = TheAdmin <Valrix>
    /prefix &5The&4Admin valrix = TheAdmin <Valrix>
    /prefix &4MOD valrix john jane peter =
    MOD <Valrix>
    MOD <john>
    MOD <jane>
    MOD <peter>
    PLANNED UPDATES (open)

    • Economy plugin support
    COLOR CODES (open)

    • Black = &0
    • Dark Blue = &1
    • Dark Green = &2
    • Dark Aqua = &3
    • Dark Red = &4
    • Dark Purple = &5
    • Gold = &6
    • Gray = &7
    • Dark Gray = &8
    • Blue = &9
    • Green = &A
    • Aqua = &B
    • Red = &C
    • Light Purple = &D
    • Yellow = &E
    • White = &F
    PERMISSION NODES (open)
    prefixer.list - Allows player to use /prefix listto see color list
    prefixer.list - Allows player to see list of color codes
    prefixer.self - Allows player to set own prefix
    prefixer.other - Allows player to set another player's prefix
    prefixer.remove - Allows player to remove prefixes
    * prefixer.remove required to remove ANY prefixes *

    Features:
    • Customized prefixes with color codes
    • Multi-world support
    • Supports native bukkit permissions (PermissionsBukkit)
    • Now supports other plugins hooking in to get/set/remove, and check if a player has a prefix set.
    CHANGELOG:

    Version 2.5.1
    • Fixed NumberOutOfBounds error people were getting
    • Properly tested against newest RB and multi-world support
    • Removed config & generation code until later
    • Patched memory leak error
    FULL CHANGELOG (open)

    Version 2.5
    • Added multi-world support
    • Now uses native permissions (PermissionsBukkit)
    • improved command syntax
    • Improved command node handling
    • Numerous code improvements
    Version 2.4
    • Should fix any problems people have been having recently.
    Version 2.3
    • Bunch of code changes to improve performance and decrease code size.
    Version 2.2
    • Fixed that blasted bug where you couldn't remove prefixes.
    Version 2.1
    • Added support for giving a player a prefix through command-line
    Version 2.0
    • Fixed the bug where you couldn't set someone else's prefix.
    Version 1.9
    • Prefixer now automatically updates the old .prefix file, which is where the prefixes are stored, to work with the newer prefix system.
    Version 1.8
    • Prefixes are now fully customizable.
    • Permissions is now optionally supported.
    • Works fine with RB 670
    Version 1.7
    • Should work with RB 617
    Version 1.6
    • Now works with RB 602
    Version 1.5
    • Fixed it to work with new command structure
    • Now allows player to set own prefix using a smaller command
    Version 1.4
    • Fixes a bug with setting a user to having no prefix
    Version 1.3
    • Changed how the prefix is added. Should play nice with other plugins now.
    Version 1.2
    • Fixed a weird error with colors
    Version 1.1
    • Updated to comply with new constructor.
    • Adds the ability to add color to the prefix. See description for example.
    • Names are no longer case-sensitive. Instead of Valrix you can use valrix, or even VaLrIx if you wanted so you don't have to worry about messing up a user's name.
    Version 1.0
    • Release of Prefixer
     
  2. Offline

    Valrix

    Alright, I'll do a bit of testing when I can.
     
  3. Offline

    chelben9

    does this work with permissionsbukkit/supermbridge
     
  4. Offline

    Valrix

    Not yet, I'm working on that though. It'll be in the next update since I prefer native permissions over the Permissions plugin.
     
  5. Offline

    chelben9

    i tried it and it works perfectly but can u make it so i dont have to enter each person 1 at a time it takes there permission group thnx
     
  6. Offline

    Valrix

    Groups are something I haven't quite worked out yet since it specifically looks for a user's name. The hard part is even adding in support for offline players wasn't easy because I have to verify the user has even existed on the server, otherwise assume the name is a color, check that, and if it's not an existing color, return an error. I can try to play around with accepting a group, but I'm not even sure where to start with that. I might be able to think up a method of changing multiple players at once, but that may take a re-write of how commands currently work.

    Just give me some time and I'll see what I can do.
     
  7. Offline

    chelben9

    ok thnx
     
  8. Offline

    Poe

    nice plugin you should make it color for words too :)
     
  9. Offline

    Valrix

    That's not the point of this plugin though and would give users a bit too much control over chat to use it in an annoying way. Maybe someone else would be willing to make that though. This is specifically for creating/coloring a player's prefix
     
  10. Offline

    Poe

    i agree...same reason why u probably put colorme as a seperate plugin...which i also downloaded :)
     
  11. Offline

    Valrix

    Yep, I wanted to keep their functionality separate so admins would have more control. I hate when plugins have feature creep, so I just find it easier to make another plugin with the desired function and submit it so admins only get what they asked for instead of extra crap in a plugin that just takes up space and resources.
     
  12. Offline

    CharlieM2

    You should make it character limit. In the config.

    Make this for Suffix Also

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  13. Offline

    wangjacobsen

    Evreytime i try to do the /prefix [color]<Prefix> thing.. it says
    <> = Required [] = Optional
    /prefix list
    /prefix [colorcode]<prefix>
    /prefix <name> [colorcode]<prefix>
    help please
     
  14. Offline

    Valrix

    I've decided to change the internals a bit since the old method to do all this is utter crap. So, I'm going to re-write a bit of command handling to make the whole process smaller and not so horrid to work with, especially when it comes to ironing out bugs. I'll go into more detail once I know exactly what I plan to do, but I can say it should get rid of all these stupid problems everyone has been running into lately.

    You do realize this is called "PREFIX-er" right? I don't do feature creeping. This plugin is ONLY for adding a prefix to a users name. Maybe I'll make a Suffixer plugin, but not now when I have much more important things to work on and fix.

    Alright, so here's how the new system will work:

    To give a prefix:
    /prefix <prefix> [name, name2, name3...]
    and a working example:
    /prefix &4~Apple~ valrix john jane bob

    so valrix, john, jane, and bob will all get the prefix of ~Apple~
    and names are optional, meaning:
    /prefix &4~Apple~
    will give the person who sent the command the prefix shown above.

    Then to remove:
    /prefix -r [name, name2, name3...]
    where the same rules apply for when you set a prefix. For example:
    /prefix -r valrix john jane bob
    will each have the prefix removed, or
    /prefix -r
    will remove the prefix of whoever sent the /prefix command.


    Please understand this will take a bit of time since it's a rather drastic change, but the benefits will outweigh the downtime.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 9, 2016
  15. Offline

    Firewolf34

    Any reason why normal players can remove their prefix regardless of Permissions Nodes? We use our prefixes for ranking, and I don't want any confusion.
     
  16. Offline

    Valrix

    Because if a player doesn't want it, currently they're allowed to remove it and the only thing they hurt is themselves. Which is kinda like a player can remove protection from their place, but it means they can be griefed. I would just suggest that you tell players not to remove their prefix unless they want to be set back to the lowest rank, I'm sure they wouldn't mess with it then. Although, I suppose I'll add in an admin override so you can prevent them from removing it, since if you ever wanted to give a [THEIF] prefix, you wouldn't want it to be removable. I'll add it in to the next update.
     
  17. Offline

    Keetveter

    Would you like to make a permanent link to the latest version and give that to NoFear13 so he can use it for CraftBukkitUpToDate. That would be really nice :) .

    Thank you in advance.
     
  18. Offline

    Valrix

    Sure, I'll make a specific dropbox folder where I'll always put the latest copy for auto-update plugins. Though eventually I hope to add this functionality to my plugins so they can update themselves in a nice way.
     
    Keetveter likes this.
  19. Offline

    Jumla

    I was like.... 99% done on a plugin that does the exact same thing.... You beat me too it :D Great job, great minds think alike I guess.
     
  20. Offline

    Valrix

    Haha, this has been around for around 6 months though. I've been working on it for a while :p
     
  21. Offline

    Archie

    It keeps saying internal error when u use the command on someone else.
     
  22. Offline

    hatninja

    hey for some reason i cant prefix other ppl
    but i can prefix myself.
    this is the error i get when i try to prefix someone else
    22:32:50 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'prefix' in plugin Prefixer v2.5
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
    at com.sparkedia.valrix.Prefixer.Prefixer$1.onCommand(Prefixer.java:163)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  23. Offline

    Valrix

    What's the command you issued?
     
  24. Offline

    LennonLenford

    I'm slightly confused on how to set the prefix of someone else.

    "/prefix <Hey> [blablabla]"

    <> has the prefix inside
    [] has the player name inside
     
  25. Offline

    Valrix

    That may be why, you're not quite doing it right. I have examples in the first post, but here's how:
    /prefix ThisIsAPrefix you me him her
     
  26. Offline

    LennonLenford

    The same error is coming up as the person who recently posted.

    I tried the way you just told me before, but I just felt like I wasn't reading your instructions right so I added random things. All came up with an error.
     
  27. Offline

    Archie

    Also, from my first post, anyone besides me with a prefix can't use any commands. I don't have permissions installed either.
     
  28. Offline

    hatninja

    i used /prefix <name> &9Mod
     
  29. Offline

    samknash222

    I can no longer set prefixes for others. I have posted my sever log here: http://pastie.org/2367100 I am runing CB 1000 and the newet version of this plugin.
     
  30. Offline

    Valrix

    You're putting them in the wrong order. It goes /prefix <prefix> <name>. Though from what I can see it looks like something is wrong with the iterator. I think I know what's wrong and will post a fix once I look it over.
     
  31. Offline

    hatninja

    i did in the right order too it still wouldnt work
     

Share This Page