Individual Messages
Add dynamic chat prefixes, or send chat messages unique to the receiver
[Overview]
Have you ever wanted to display a user's balance, or the system time as a prefix?
This plugin allows you to replace {placeholders} or specific words with user specific messages.
- Evaluates per player
- Placeholders can be used in any message e.g. from console or in commands etc
- Permissions to use placeholders in chat/commands
- Easy to use scripts to add your own
- Developer API
[Examples]
With this plugin, placeholders can be replaced with information about whoever is reading it e.g.
- {player} - the player name
- {money} - the players money
- {group} - the users group
But you may also want (in terms of prefixes) to have the information to be about a specific player.
In this case you can use modifiers to have it evaluate for whoever the prefix is on, heres an example
- {money:{sender}}
- {group:{sender}}
- {lvl:{sender}}
These placeholders can simply be put in your EssentialsChat or whatever chat manager you have
See below for comprehensive information concerning the placeholders
[Me testing the plugin] Want your video here?
[Dependencies]
This plugin requires the several other plugins to function correctly:
- ProtocolLib (used to update the packets)
- Vault (used for permissions, economy and chat integration)
[Commands]
Command | Description | Permission |
---|---|---|
/inme list | Lists all the placeholders | |
/inme help <placeholder> | Information on how to use a placeholder | |
/inme reload | reloads the plugin | inme.reload |
/inme disable | disabled a placeholder | inme.disable |
/inme enable | enables a disabled placeholder | inme.enable |
[Additional Permissions]
- inme.create - Needed to use any placeholder (Give it to everyone)
- inme.create.* - allows you to use everything
- inme.create.<placeholder> - allows you to use a specific placeholder.
[Placeholders]
- {player}
- {sender} <- The original player who called the script
- {world}
- {x}
- {y}
- {z}
- {lvl}
- {exp}
- {money}
- Click here for a detailed list.
[Scripting]
- Custom placeholders go in the folder ".../plugins/IndividualMessages/scripts/"
- Any additional placeholders will go there.
- To add your own copy the default template "example.yml"
- The placeholder for "example.yml" would be {example}
script: - if {hasperm:hello} - return &1Hello! - else - return &4Bye!
- Please visit the scripting page for more info.
[Developer API]
The API allows you to create placeholders or replacers without having to worry about all the protocol stuff:
- Click here for the developer API
@z65703071 I'm glad it's working for you!
@Empire92 Thanks! For the prefix and suffix, I got a mistake, now fine.:)
@z65703071 What isn't working about {prefix} and {suffix}? It's included in 1.5 and nothing should have changed for it...
Also, for null checking, sorry about changing that up. You can do this:
(basically just put quotes around it)
@Empire92
Why I can't use {prefix} and {suffix} in 1.5 also currently all the placeholder will send spaces to cover null so how can I check a value == null?
@z65703071 It is fixed in the next version
@Empire92
It's a huge problem because so much error messages would spawn even just one guy. :( I hope that gonna be fixed.
@z65703071 I don't think smiley faces are the right choice of emoticon. :(
I still need to fix the previous bugs you posted, as this new file I uploaded before you told me about the problem.
Error on save and reload.
http://pastebin.com/hBfLgK4D
Error on plugin return messages.
http://pastebin.com/WjLyA5xp
:) :) :)
@z65703071
Thanks, I'll see what I can do.
http://pastebin.com/7ujsJiVT
These would be spawn whenever use some command in game. Not all the command, for example: /f map, /holo, /hd , etc...It may be related with the plugin return message.
http://pastebin.com/E9DpdjmV
When server is beginning shut down.
@z65703071 Can you send me a log or a better description at least of what the error is?
@Empire92
Oh! I mean fix bug or add more feature for this plugin. I'm so surprised for you are keep working with sidebar because I saw you posted a comment "Yeah, I've just lost interest in this project".
(Sometimes this plugin would be error.)
@z65703071 What do you mean again?
Also, I have done some more work on SideBar and Scripting+ but it will still be a while until they are released as I have a lot of other things to do (non Bukkit related)
Will you develop this plugin again?
Anyone interested in documentation for the API?
@z65703071 This is my old project: http://dev.bukkit.org/bukkit-plugins/sidebar/
@z65703071
That's already possible:
use: {js:6+({money}+{exp})*2}
@Empire92
Thanks :)
I have a suggestion. If I can use the operator to counting(+,-,*,/) some data?
I mean....... Use this system to counting the placeholder data or other data from plugin?
For example /say {money}{+}{exp}{*2}?or...... I don't know...... :) But,That's pretty awesome and I was never seen!
@z65703071
When I have some free time I will work on getting all these placeholders working again with scoreboards, but I had some trouble getting it to work in the past.
This plugin is pretty useful! Can I display the data of scoreboard in future?