ShowItem 1.2 - Show items in every chat message via a variable
This update adds the ability to add your main hand item into each chat message just by typing a (configurable) variable like %item% into your message. The variable is case insensitive so %Item% and %iTeM% would also work.
This feature should be compatible with every Bukkit chat plugin and the Vanilla chat. It is
not possible to use this feature with BungeeCord based chat plugins and doesn't work correctly for Bukkit chat plugins with BungeeCord chat sharing feature! (Only players on the same server will see the item info)
You can set the chat commands you want the variable to work in (* for all commands) and change the variable itself in the config. Obviously you should use something unique that doesn't come up in normal conversations.
Code (Text):
chat:
variable: "%item%"
# Which variable we should replace in the chat with the player's current item
commands:
# A list of commands where we should replace the variable with the item info, use * for all commands
- "msg"
- "say"
- "me"
- "ch"
There is also a permission (showitem.chat) to use this feature which is set to true by default, so you have to negate it when you don't want this feature at all.
This update also adds
MetricsLite for some statistics on
mcstats.org, you can disable these by opting out via the usual PluginMetrics/config.yml. MetricsLite is under the following license:
Copyright 2011-2013 Tyler Blair. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list
of conditions and the following disclaimer in the documentation and/or other materials
provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The views and conclusions contained in the software and documentation are those of the
authors and contributors and should not be interpreted as representing official policies,
either expressed or implied, of anybody else.