Resource icon

Script ChatItem 1.9.1

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dependencies have been updated to Skript 2.6.4+ and SkBee 2.15.0+.

  • Messages changing big/small letters in player names, prefixes, etc.
  • Removed a single word (which was added by the One Word Update) to remove a warning since SkBee updated its syntax again.
This update adds a new config option and a new feature that fixes some annoyances when directly including the message inside of the chat format instead of using [message].

  • New config option to grab the item amount from the entire inventory instead of only from the item stack.
  • Chat format normalization. If the chat format includes a formatted/colored/unformatted message, the script will modify the message variable itself to also be formatted/colored/unformatted. This is done so that after the script removes duplicate keywords from the message it can correctly replace the chat format to include the new modified message.
  • Duplicate keyword removal not working when the chat format directly includes the message.
SkBee 2.8.3 broke some of the current script functionality, causing the messages of players to be split into multiple lines when using keywords. The script has been updated accordingly with additional changes and as a result only supports SkBee 2.4.0+.

  • The script now removes color codes (ampersand & symbol followed by a number or letter) from messages with keywords to avoid SkBee coloring it when it isn't supposed to. (previously these weren't touched at all)
  • Player messages being split into multiple lines when using keywords.
  • Colors sometimes not being applied correctly.
  • Messages ending with a keyword followed by its type showing the item twice ([hand]hand[hand][hand]).
  • Default chat format sometimes being used instead of the one set by another script. Fixed by waiting a tick (Skript currently doesn't support event priorities for the chat event).
The script has been rewritten, making the code more bearable. As a result the script now only works correctly with SkBee 1.16+.

The source code is also now stored on GitHub Gist instead of Pastebin.

The changelog below may have some things missing, since I'm not entirely sure that I checked all of the changes that occurred due to the rewrite.

  • Different item format for unstackable items.
  • Keywords are now stored in global variables created when the script loads, instead of local variables created every time a player chats.
  • {CIplaceholder} being removed from the chat when using keywords.
  • Pesky warning about a list missing an 'and' or 'or'.
  • Using the same keyword more than once resulting in a " appearing in chat ([hand][hand][hand]").
  • Colors in chat not being displayed properly or across the whole message when using keywords.
  • Messages only appearing once when present multiple times in the chat format.
  • Messages containing :{1}: with numbers from 1-6 changing places with keywords (:{1}:[hand][hand]:{1}:).
  • Messages with keywords being sent even when the chat event is cancelled.
SkBee had its syntax changed a bit so I had to add just 1 word in order for the script to work again.
The script now requires SkBee 1.15+
Added more keywords.
The config now uses {name} for the item name instead of {item}.
Updated the code so it is now even shorter and makes more use of the SkBee addon.
Fixed an error regarding armor slots being empty.
Now also works with Skript message formats that use %player% and %message%.
Updated the code, it is now shorter.
The script no longer requires SkQuery.
Items that previously did not display an amount now display one.
Removed the update checker.
Removed the built-in chat format.