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
@btgaminh
You would use pex to set someones group in pex...
@Empire92
Oh. Sorry, I missed some part of tutorial.
How would i use this to set someones group in Pex
@z65703071 that should work... Try it out.
edit: it's {money:@p}NOT {money{@p}}
{player} will return the player name
@p will return the player name
but {@p} will return null;
@Empire92
For example when I used a command: "/msg @p HI!You have {money{@p}} money!"by command block.
The player of closest will get a messages: "HI!You have 100.0 money!" or other way to achieve .
@z65703071
It should already work from console and command blocks. As long as the message is received by a player, it will work.
The only thing that won't change are messages in console.
or do you mean in commands and evaluation...
@Empire92
I think I have some possible suggestion for your developing.
In currently, the feature of placeholders is just for personal.
Can I use this plugin to display some data of Specified player by console or command block in future?
@z65703071
Thanks.
A few things to remember:
1) if you want a prefix to be specific to the person it's on, remember to add the {sender} modifier. If you see in the video, I used {money:{sender}} so that the other player would see my money, rather than theirs.
2) If you don't give players any permission nodes, they won't be able to use any placeholders in chat, but their prefix etc will still work.
3) I'm open to any ideas or feedback you may have.
@Empire92
WoW! That's pretty awesome! I will install this plugin in my planning server! please upholding!
@z65703071 Hey, I made a short test video. It should finish uploading in 10 minutes.
http://youtu.be/6AoqX_JCAmE
@z65703071
I'll see if I can do a short video. :)
Hey! I'm your another plugin fans and I was expecting your new plugin. So...... what this plugin of feature? Have any images?