dsTitle
dsTitle
Description
Players can set their own title. Titles can be associated with permissions, so you can change available titles per rank or player.
Features
- Create as many titles as you want. These titles can contain colors, styles etc.
- Players can set their own prefix and suffix (or clear it).
- Associate titles with permissions. Players can only set these titles if they if the right permissions. This can be used for rank dependant titles or as rewards.
- Prefixes and suffixes can be set seperatly, or only one of them Since 1.3.0
- Nametag support. Show the titles also in the tag above a players head! Since 1.2.0
- Ingame adding and editing of titles Since 1.4.0
- Supports YAML, H2, mySQL, Postgre and SQLite storage methods. Since 1.5.0
- It is possible to set a default prefix and/or suffix for ne players Since 1.5.0
- Can be used next to another chat plugin. Title can be inserted into existing chatformat (on the position of "[titleprefix]/[titlesuffix]"), this plugin can overwrite the chatformat or titles can simply be inserted before and after the playername. See the installation section for more info
- Like all my plugins, every single message (confirm messages, error messages etc) is fully configurable. Even the menu! So no longer these annoying pluginname tags or ugly colors.
- Works with vault, so every big permission plugin is supported
- Possibility to automaticly check for updates (but no auto update)
Example
Example of title used in chat
Example of a nametag
The config of these images can be found under 'Config' down here (it is both the 'vip' prefix and the 'vip' suffix).
Installation
Simply put the dsTitle.jar in the plugins folder of your Bukkit server
If you use a chat plugin next to dsTitles, there is a change you may need to change some config files. For some chat plugins, the changes are listed down here. If your plugin is not listed here, check first if it works without editing anything. If titles aren't displayed, try to add [titleprefix] and [titlesuffix] to the chatformat of the chat plugin. If this still doesnt work, try to change general.chat_format_player_tag in plugins/dsTitle/config.yml to the playername tag used in the chat plugin. If after all of this it still doesn't work, pm me. I don't check the comments daily, but if you send a pm i get an email.
No other chat plugin
No changes needed
HeroChat
Works for me without editing anything.
mChat
Two options:
- Add [titleprefix] and [titlesuffix] to plugins/MChat/locale.yml: format.chat
- Change general.chat_format_player_tag in plugins/dsTitle/config.yml to '+dn' or '+n' (depending on MChat config) and dont overwrite the chatformat
ChatManager (PermissionsEx)
Change general.use_deprecated_listener in plugins/dsTitle/config.yml to true Add [titleprefix] and [titlesuffix] to message-format in /plugins/ChatManager/config.yml
EssentialsChat
Add [titleprefix] and [titlesuffix] to chat.format in /plugins/Essentials/config.yml
Commands
- /title prefix - List all prefixes
- /title prefix set <name> <player> - Set your own prefix or the one of an other player to the prefix with this name
- /title suffix - List all suffixes
- /title suffix set <name> <player> - Set your own suffix or the one of an other player to the suffix with this name
- /title list - Show all (or only available) titles
- /title clear <player> - Clear your or somebody elses current title
- /title add <prefix|suffix> <name> - Create a new prefix or suffix
- /title edit <prefix|suffix> <name> <field> <value> - Edit a field of an existing prefix or suffix. Valid fields are: chattag, headtag, permission and description. Example: /title prefix member chattag &3Member Group
- /title grant <prefix|suffix> <name> <title> - Grant a prefix/suffix to somebody (needs Vault installed and ds_title.admin permission)
- /title ungrant <prefix|suffix> <name> <title> - Revoke a prefix/suffix from somebody (needs Vault installed and ds_title.admin permission)
- /title reload - Reload the configuration (needs ds_title.admin permission)
Permissions
This plugin has two major permissions:
- ds_title.player - Basic permission to use /title prefix, /title prefix set, /title suffix, /title suffix set and /title clear
- ds_title.admin - Permission to use all commands
Next to that, every command has its own permission.
- ds_title.title - Permission to use the /title command. Included in ds_title.player
- ds_title.prefix.list - Gives access to list the prefixes. Included in ds_title.player
- ds_title.suffix.list - Gives access to list the suffixes. Included in ds_title.player
- ds_title.prefix.self - Gives access to changing prefix of yourself. Included in ds_title.player
- ds_title.suffix.self - Gives access to changing suffix of yourself. Included in ds_title.player
- ds_title.prefix.other - Gives access to changing prefix of somebody else
- ds_title.suffix.other - Gives access to changing suffix of somebody else
- ds_title.prefix - Gives access to changing prefix of both yourself and somebody else
- ds_title.suffix - Gives access to changing suffix of both yourself and somebody else
- ds_title.add - Permission to add a new title
- ds_title.edit - Permission to edit a title
- ds_title.clear.self - Permission to clear your title. Included in ds_title.player
- ds_title.clear.other - Permission to clear somebodys title
- ds_title.clear - Permission to clear title of yourself or somebody else
- ds_title.reload - Permission to reload the titles from config
- ds_title.grant - Permission to grant titles
- ds_title.ungrant - Permission to ungrant titles
The permissions needed per title (if any) can be configured by yourself
Config
There are two config files. config.yml contains the basic config. titleConfig.yml contains the titles a player can set. To see more information about these files, click on the links.
Here is an example of titleConfig.yml:
prefixes: member: chattag: '&3Member' permission: 'title.member' description: 'Title for members' vip: chattag: '&4&lVIP' headtag: '&4&lVIP&r ' permission: 'title.vip' description: 'Only for VIPs :P' suffixes: vip: chattag: '&6KING' headtag: '&8[&6K&8]' permission: 'title.vip' description: 'Only for VIPs :P'
This config creates two prefixes and one suffixes. Players can only set these titles if they have the corresponding permissions.
The result of the vip title can be found under 'Example'.
Known issues
- In the config.yml of plugins of version 1.1.2 or lower is a character (ยง) which some Linux systems don't accept. You can remove it by editing the jar or by updating to the latest version.
It seems titles dont work with some chat plugins without overriding the chat format.Should be fixed in 1.3.0
Found a bug? Create a ticket (top right of this page) or create an issue here.
Changelog
1.5.0
- You can now save the titles of players in YAML, mySQL, h2, Postgre or SQLite: Can be changed in config.yml/storage
- You can now set a default prefix and/or suffix by setting default_prefix and default_suffix in titleConfig.yml
- Bug fix (#1 title displaying "null")
1.4.0
- /title add and /title edit added. With these commands, you can add and edit titles ingame.
- You are now able to set titles of other players:
- /title suffix set <title> <player>
- /title prefix set <title> <player>
- /title clear <player>
- Added extra permissions. Every command now has its own permission.
- Added an option in config to disable all chattags.
1.3.0
- Seperated titleprefix and titlesuffix
- Added permissions for changing prefix and suffix
- Added some extra config items which make it able to adapt to chatplugins.
- Fixed a bug reported by lanceryy (link)
1.2.1
- {titleprefix} and {titlesuffix} replaced by [titleprefix] and [titlesuffix] to be compatible with EssentialsChat.
- Added some length checks to avoid exceptions.
- Integrated both normal and ChatManager versions into one. Set general.use_deprecated_listener in config.yml to true for ChatManager.
- Changed priority of listeners, they now insert titles after all other plugins.
1.2.0
- Added nametag support. Use 'headprefix' and 'headsuffix' in titleConfig.yml to use it.
- Fixed a bug when loading the plugin on some Linux systems
- Some little tweaks
1.1.2
Version 1.1.1, compiled and tested with Bukkit 1.5 R0.1
1.1.1
Added update checker, can be disabled/edited in the config
1.1.0
- /title grant added
- /title ungrant added
- Titles can now have both a prefix and a suffix. Use {titleprefix} and {titlesuffix} in your chatformat if you have your own format (instead of only {title})
1.0.0
Initial release
To do
- (1.5.0) Test database storage method by Kaltiz
- (1.5.0) Add an option to set a default prefix and/or suffix
- (1.5.0) Make sure title is invisible when player is invisible
- (1.5.0) Fix some bugs
- Maybe: Make an option to change title color instead of making 16 different titles
Maybe: Seperate prefix and suffix, so you can set both independantlySince 1.3.0Add the option of a suffix to a titleNew in v1.1.0Add a /title grant <name> <title> commandNew in v1.1.0Add vault support for permissionsNew in v1.1.0
Please comment if you have any suggestion.
Other plugins
dsPvPtop - Keeps track of number of kills an deaths in PvP and grants permissions.
PlayerHealth - Shows health below name to players who have the right permissions.
Contribute
The source can be found on github by clickin on the button.
If you like my work, feel free to donate something for my labour:
@XiroInfinity
Yes it supports it fully. And I forgot to thank you for you help. People like you keep the community alive.
@denniss17
I understand; I didn't think you'd be able to get too far with it haha. Maybe in the future.
That's good to hear though. The more options the better. Control is always great.
Thank you muchly. But will version 1.4 support Minecraft 1.7 Craftbukkit fully?
@XiroInfinity
Showing a title in the slot below the playername is not possible. Minecraft is so build there can only be one objective in each scoreboardslot displayed for one player. Having a title there requires as much different objectives displayed there as there are players online. Also you cant see your own name, so it is not worth trying to build it so only you can see it :)
Nonetheless, I added a config item to disable chattags. I also added some extra commands for ingame title editing as requested in http://dev.bukkit.org/bukkit-plugins/dstitle/tickets/2-simple-commands/. Next to that I created more permissions, so the plugin is more controlable.
Version 1.4.0 will be online quick, as soon as the Bukkit team approves it.
@denniss17
Thanks for the fairly prompt reply. That's interesting to know and I'll try it out shortly.
And I understand. I wasn't fully sure on the idea, but there's no harm in asking. When I saw this plugin it reminded me of the game Dragon Nest, where the player's title is displayed below their username. I thought it'd be cool if that were possible.
Would this little test allow others to see it as well? Or would you also only be able to see your own title again? Either way, it does sound kind of neat and I'll wait for your findings.
Regardless, you really do seem to know what you're doing, and I appreciate the information. I've given you a little tip, please enjoy and keep up the great work.
@XiroInfinity
If you leave the chattag empty in the titleConfig, it won't show up in the chat. Currently there is no other way to disable chattitles, as removing the tags in the chatformat will make this plugin inserting the titles before and after the name. However, I can add config options for that.
About the title on the second line: This is not possible. What you see there ("Health") is the name of a scoreboard displayed. If every player has a different title, they therefore have all different scoreboards. As you can only see your own scoreboard, you can only see your own title.
However there seems to be a way to manually do this by hacking a little into the source. It sounds to me as a cool feature, so I will experiment with it. Will post here soon
Is it possible to make a title show up on the nametag, but not in the chat? I ask in consideration of donation ranks and plugins like teams/factions adding prefixes on their own, automatically. Don't really want the chat to become overwhelmed.
Is it also possible to make a title appear on a second line for the nametag? Just a thought based on the fact you made a Player Health plugin, I imagine you might be able to do something similar to create what I'm asking for.
I would definitely be willing to donate a courteous amount for either of these to be possible.
I set up the config correctly and it erases it after I save and restart the server?
@deryer8
The plugin works fine without vault, but then the /grant and /ungrant commands dont work.
Is there a way so i can use this without vault? cuz i cant use the grant command...
This isn't working for me. I set up the config correctly and it erases it when I log on to the game. Help/Advice?
@denniss17
Ah, that's it! I have MCCore installed and it messes with scoreboards but it's not supposed to do anything to head tags so I had no idea it was causing problems, but everything seems fine when I take it out!
Thanks for the reply and the plugin!
@Tehkiah
You didn't change the config and there are no errors in the console? Then I think you have another plugin which does something with headtag or scoreboards too.
First off, awesome plugin, thanks for making it!
Second, I'm having this weird issue where the head display is not working all of a sudden. When I set up my first few titles, I set up the headtag and checked it in game and it worked fine. For seemingly no reason, head tags have ceased working. I didn't change anything with the titles, they just don't show up anymore! The chat titles still work fine, oddly enough. Any thoughts?
@antr95
If you look at the stack trace, you can see the exception occurs in:
org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler.populatePerms(AnjoPermissionsHandler.java:186)
So its basicly not this plugin thats causing the execption, but GroupManager. Anyways I see what I can do about it
This plugin is super great. If you could add a couple commands for us to make the titles in game that would make it 100% better. I've submitted a ticket to explain the changes you could make. I'd be willing to help with this if needed also.
When my players have permission to change the title along with all the other proper permissions it says "That prefix is not found!" whenever they try to set it. I've tried it with the proper capitals, lowercase letters, etc. I can sudo them (essentials) as OP to get them to set it (sudo'ing requires the player to have all the correct permission nodes in order for it to work). (/sudo playername title prefix set Title) It works perfectly like that, but they're unable to do it themselves.
permissions:
- ds_title.player
- title.test
I've also tried replacing "ds_title.player" with "ds_title.prefix" and "ds_title.title" and it still doesn't work. I know the permissions are correct, but something in the plugin is resulting in the "That prefix is not found!" message. They have all the permissions for the titles I'm giving them as well, otherwise it just says "You do not have permission" for the titles they do not have permission to.
No errors on console, version 1.3.1 of dsTitle, no chat manager plugin of sorts.
Edit: As an OP I am able to set the prefix without it saying "That prefix is not found." It works perfectly for me, but all of their permissions are set up properly.
Thanks for the awesome plugin, can't wait to get it working properly!
/title grant and /title ungrant still does not work
23:03:59 [WARNING] Unexpected exception while parsing console command "title grant DragonSlayer antleet DragonSlayer" org.bukkit.command.CommandException: Unhandled exception executing command 'title' in plugin dsTitle v1.3.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(CraftServer.java:527) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchServerCommand(CraftServer.java:516) at net.minecraft.server.v1_6_R3.DedicatedServer.as(DedicatedServer.java:276) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:241) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.NullPointerException at org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler.populatePerms(AnjoPermissionsHandler.java:186) at org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler.getAllPlayersPermissions(AnjoPermissionsHandler.java:126) at org.anjocaido.groupmanager.permissions.BukkitPermissions.updatePermissions(BukkitPermissions.java:173) at org.anjocaido.groupmanager.permissions.BukkitPermissions.updatePermissions(BukkitPermissions.java:134) at net.milkbowl.vault.permission.plugins.Permission_GroupManager.playerAdd(Permission_GroupManager.java:134) at denniss17.dsTitle.CommandExec.cmdTitleGrant(CommandExec.java:248) at denniss17.dsTitle.CommandExec.cmdTitle(CommandExec.java:75) at denniss17.dsTitle.CommandExec.onCommand(CommandExec.java:26) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 8 more
I spent the past day looking for something that would work with herochat. Finally. Thank You. Thank you so much.
(For those who want to know how to get it working with herochat, it is the {prefix} tag. At least for me.)
i using herochat ,but don't work with this plugins [titleprefix] and [titlesuffix] it's don't work
I wanted to change the color of the prefix and suffix as shown in the snapshot but I'm not sure how. Can someone help me out